Class 7 — Variables, classes, control structures, and error handling
Javascript topics
Javascript examples
Topics
- Single value variable types
- Number — done in class 5 with calculator
- String — done in class 6 with spaceling
- Boolean
- Variables with multiple values
- Arrays — done in class 6
- Object literals
- Classes
- Datatype conversion
- typeOf() — undefined and null variable types
- Program statement types
- Declaration
- Assignment
- Function call
- Control structures
Web console
Under tools select "Web console", then you can see the output of the
function console.log(message_string).
You also get some syntactic error messages, which can be more helpful
then JSLint when loading a web page.