Today I Learned Javascript - How to Get Started as a Steemit Front-End Developer - Part 2

Learning a New Language is Fun!

Okay, so I woke up this morning ready to rock! So I went ahead and started my first lesson in Javascript with CodeSchool. I took all my notes and compiled them in a html file on my github repository that you can find here. I decided to create a file for every lesson that I am going through. You can download "Day1.html".

<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<script>
//* Lesson #1 *//
var trainWhistles = 3 //* Storing a value in a variable *//
trainWhistles = 9 //* Changing the value of the variable *//
trainWhistles = trainWhistles + 3 //* Changing the value of the variable *//
trainWhistles +=3 //* Different way to accomplish it *//
trainWhistles -=3 //* Substract 3 from the variable *//
trainWhistles++;  //* Add 1 to the value *//
trainWhistles--;  //*Substract 1 to the value *//
document.write("All of our trains have " + trainWhistles + " whistles!"); //* Renders "All of our trains have 12 whistles! *//

//* Lesson #2 *//

var welcome = "Welcome to Javascript Training Program"
var safetyTips = "Learn Carefully!"

document.write(welcome.length) //* Return the value of the lenght of the variable */

document.write(safetyTips.length > welcome.lenght) //* Return the "False" bolean value because safetyTips is shorter than welcome *//
</script>
</body>
</html>

I made sure to put annotations to explain what everything meant so people who are interested can follow along.

What I've learned today?

  1. Understanding JavaScript
  2. Creating Simple Scripts
  3. Assigning Variables, Strings and Arrays
  4. Using Functions

I literally feel like NEO after getting downloaded data directly into his brain in the movie the Matrix.

Outside of CodeSchool where I did the exercises to make sure I understood the content well, I found this really cool 12 minute video that explain very well everything that I've just learned. It is now in my watch list if I need a refresher tomorrow.

Conclusion

It a lot easier than one may think. All we have to do is to take baby steps everyday. To me, 30 minutes a day is all I can fit in my schedule for now. But multiply this by 365 days and I should be good enough within the next year or so :-)

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
22 Comments