Introduction to Javascript

This module is an introduction to the Javascript programming language. It will also serve as a programming reference that you can use throughout the course.

This module will cover variable data types, boolean branching structures, looping structures, functions, objects, and arrays.

These notes assume that you have prior coding experience with a C-style language like C, C++, C#, Java, PHP, etc.

Objectives

Upon completion of this module, you should be able to:

  • Add executable Javascript to HTML files.
  • Use comments in your Javascript code.
  • Store data in variables and constants.
  • Interpolate variables in strings using template literals.
  • Output strings to the debugging console.
  • Perform math operations on numbers and numeric variables.
  • Code various conditional and looping structures.
  • Define and use your own functions.
  • Understand Javascript scoping rules.
  • Store and retrieve single and multi-dimensional array data.
  • Store and retrieve values in objects by key.

Table of contents