JavaScript Basics

This chapter goes through the basics of the JavaScript programming language.

  • 2-1. Basic data types and control structures
    • numbers, strings, conversion, selection and looping
  • 2-2. Arrays
    • create an array, array index, basic methods
  • 2-3. Functions
    • function declaration, variable scope
  • 2-4. Objects as data structure
    • model data by mixing arrays and objects
  • 2-5. Functions, as objects and callbacks
    • function expression, arrow function, passing function objects into and out of functions
  • 2-6. Objects with methods
    • Object literal
    • methods, this
  • 2-7. Some built-in class: Collections and iterable objects
    • built-in classes: Array, Date, Map
    • define class

There are lots of free JavaScript tutorials, books and reference material on the web. Below are some of my favourites: