The first part of lesson one went over the basics of Javascript. It taught how to create variables, displaying strings to the console, comparison statements, and conditionals
Codecademy has several lessons on Javascript. Many of their lessons had fun examples to work through, and also showed how Javascript is used on webpages that we visit every day.
The first part of lesson one went over the basics of Javascript. It taught how to create variables, displaying strings to the console, comparison statements, and conditionals
The second part of lesson one walked through how to create a simple game that asks for inputs from the user. It showcases many of Javascripts uses in the real world and was pretty fun to complete. It, however, mentioned Justin Beiber, which I am a little disappointed with.
Lesson two introduces functions. It went over how to create and call functions, as well as how to return values. Functions are primarily used to prevent redudancy in code and keeping things organized.
That final part of lessons two was the most fun. It took everything we learned so far and used it to create a simple rock, paper, scissors game played against the computer. It took user imput, created a functions, and used if-else statements to make the game. It was a great way to become more familiar with Javascript and how it works.