Page 16
Lesson 4 Review
Today we finished with the syntax of JavaScript. We've covered, in broad strokes, most of what is covered in an introductory computer science course. If you understood it all, you should go grab a celebratory banana. Here's what you should know by now:
while loops
How to make a while loop loop both indefinitely and a specific number of times
for loops
How for loops work
Arrays
What arrays are and how to initialize and set them
Arrays and loops
How to use loops to go through arrays (using the array.length
property)
Arrays in the DOM
How to use arrays to affect images on your pages (the DOM is packed with arrays)
Functions
You should know what a function is and how to write and call one
Parameters and return values
Functions get interesting when you can change their behavior based on parameters and use their results in other parts of your JavaScript
You can now call yourself a junior computer programmer. In Lesson 5, we're going to leave the dry-ish world of JavaScript syntax and return to the JavaScript Document Object Model. Here we will learn about how you can use forms to interact with users in powerful and interesting ways.