JavaScript is the programming language that is a standard part of browsers. While there have been several attempts of having additional languages, most attempts have failed. One arguable exception to this is TypeScript, which has a large following but unfortunately requires compiling into JavaScript before it can be used.
The purpose of the cheat sheet is to give you a summary of the main aspects of the JavaScript language, with classes and asynchronous work being in separate cheat sheets. If you fully understand what is in the cheat cheat then feel free to skim or skip this chapter. I urge those readers to attempt the project just to make sure they really do understand the material but that is up to you.
The cheat sheet is here and the source in my github repository located at https://github.com/BillySpelchan/FromScratchHTML_CSS_JS.
A quick summary of the basics of JavaScript.
A brief look at how JavaScript was written in 10 days.
Comments. Why programmers don't write them, and how they should be written
Variables are used to store the state of a program.
Bits, Bytes, and data types.
Math on the computer similar but some symbol differences.
Various math operations can be used through the Math class.
Strings are what we call blocks of text and are used extensively.
Determining if a conditional expression is true or false
Conditional code using the if statement.
If statements can contain other if statements, this is called nesting.
Switch statements are a way of replacing large number of else if statements.
Functions let you put common code into a named function that can be called anywhere.
Loops allow you to repeat sections of code until conditions are met.
Just like conditional statements, loops can be nested but this has some special considerations.
Scripting languages give us the ability to dynamically change the web page.
Reacting to the user actions is done by handling events.
Our project for this chapter is a grid search game.
My solution to the Project.