from https://hackernoon.com/12-amazing-javascript-shorthand-techniques-fef16cdbc7fe |
Hi Mom,
So I have been teaching myself Javascript, mostly with the use of this book:
eloquent javascript
http://eloquentjavascript.net/
But the GIF I borrowed comes from a Hackernoon article, which is pretty interesting.
https://hackernoon.com/12-amazing-javascript-shorthand-techniques-fef16cdbc7fe
Anyway, this morning I took a Javascript webinar online (obv) with Thinkful, who wants to sell me more courses, so this is lure, but that's okay. For now, that's okay.
But I actually wrote some code and ran it in CODE PEN.
Here's the course and materials.
CRASH COURSE IN JAVASCRIPT BY THINKFUL
Here's some Javascript I wrote (some of which I had to go through on my own as this stuff was not all shown in the webinar).
Writing code is fun!!
function greetWorld(){
var greeting = "Hello World, I am the gmr!";
return greeting;
}
function familyRoadtrip(needGas) {
if (needGas == true) {
gas = getGas();
return gas;
}
else {
go = keepDriving();
return go;
}
function getGas(){
var gas = "Hey, get gas!";
return gas;
}
function keepDriving(){
noGas = "Keep driving.";
return noGas;
}
}
console.log(greetWorld());
needGas = true;
console.log(familyRoadtrip(needGas));
needGas = false;
console.log(familyRoadtrip(needGas));
That's all for now. Shorty today. Busy grading.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Reflect and connect.
Have someone give you a kiss, and tell you that I love you, Mom.
I miss you so very much, Mom.
Talk to you tomorrow, Mom.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Days ago = 1082 days ago
- Bloggery committed by chris tower - date - time
NEW (written 1708.27) NOTE on time: I am now in the same time zone as Google! So, when I post at 10:10 a.m. PDT to coincide with the time of your death, Mom, I am now actually posting late, so it's really 1:10 p.m. EDT. But I will continue to use the time stamp of 10:10 a.m. to remember the time of your death, Mom. I know this only matters to me, and to you, Mom.
7 comments:
Post a Comment