Introduction to JavaScript

Aims

This course teaches novices how to write JavaScript programs. The key concepts are described, such as input and output, variables, data types, expressions, conditions, statements, functions and objects. Although no experience of programming is assumed, prior exposure to the basic concepts of programming would be valuable. Some knowledge of HTML is required.

1. Introduction
· Why learn JavaScript.
· History
· Standards

2. Combining JavaScript and HTML
· HTML skeleton
· The <script> block

3. JavaScript Inputs and Outputs
· Objects
· Methods
· Properties
· Using the alert, confirm and prompt methods
· Using comments

4. Handling Data with Variables
· Values
· Variables
· Using them with JavaScript

5. JavaScript Arrays and Escape Characters
· Using arrays
· Creating arrays
· Creating array elements
· Using escape characters

6. Expressions, Conditions, Operators, Strings and Numbers
· Expressions
· Conditions
· Operators
· Converting string types to numbers

 

7. Using Statements in JavaScript
· What statements are
· The variable statement
· Conditional statements
· Iteration statements
· The continue statement
· The break statement

8. Functions and Events
· What functions are
· How to use functions
· Passing events to trigger functions
· Passing information to and from functions
· The return statement.

9. Introduction to Objects
· What objects are
· The Date object
· The String object
· The Math object

10. The Document Object Model
· The Window object
· The Navigator object
· The Document object
· Dynamic HTML

11. Forms and JavaScript
· Accessing Form elements
· Form validation
· Submitting Forms
· Check boxes and Radio buttons