C O N T E N T S

Part 1 - Jumping straight in

Start here

About this introductory section

A simple HTML page

Exercise 1 - HTML page

Where to start a program

Exercise 2 - Date & time

What if it doesn't work?

Explaining the date/time code

Keeping time

Exercise 3 - Ticking clock

Input

Exercise 4 - Input name

Forms

Programming that form

Exercise 5 - Calculator

Drawing graphics

Exercise 6 - Graphics

Designing an application

Next steps

Some programming principles

Exercise H1 - Game requirements

Part 2 - From the ground up

The core language

Start again - properly

Running JavaScript

JavaScript naming rules

Data types, variables, comments

Number

Boolean

Operators

Bits & bytes

String (and characters)

Statements & compound statements

Global and local variables - scope

Conditional statements

Loop statements

break & continue

Exercise 7 - Loops and conditions

Functions

Exercise H2 - Top level

Objects - the key to JavaScript

Methods

Prototypes

Inheritance

Arrays

Object properties as arrays - important!

Loops of the 3rd kind

Exercise 8 - Generate HTML table

The global object - and a WARNING

Useful core objects

Exercise 9 - String and Global methods

Regular Expressions

Exercise 10 - Regular expressions

Throwing and catching exceptions

Exercise 11 - Exceptions

Values vs references

Equality (==) and identity (===)

Garbage collection

Determining variable type

Some more operators

Function arguments (parameters)

Function literals

Graphics

Exercise 12 - Charts

Exercise H3 - Completing the game

Client JavaScript (Dynamic HTML)

COMING SOON

The Document Object Model (DOM)

COMING SOON

Appendix

References/links

End of course