We start the intermediate section by looking at arrays and the
Array object and some of the methods. We continue our look at some of JavasScripts predefined objects
by examining the
Date object and some of the date and time methods available for use with this object. After this we take a first look at conditional statements with
functions, before finishing the intermediate section with a look at regular expressions.
There comes a time within a program, where we need to do something based on something else, for this we use conditional statements. In this lesson we look at the
if....else statement for basic condition handling.
On occasions we need to iterate over sections of code and JS supplies us with loop structures for this purpose. In this lesson we take our first look at loops with the
do....while loop statements.
In this lesson we look at the
for loop statement which is generally used for repeating some statements a set number of times.
for statement is more compact than the
while statement and we can apply variables to the loop within the
for statement itself.
look at the
global functions and the
Nan global property.
This lesson is about object creation using 'object literals' rather than assignment. This method of object creation is more compact and so less error-prone. This method also gives us a more visual layout for the structure of the object we are creating.
In this lesson we look at regular expression creation using the
RegExp object or literal format. We also investigate the effect flags have on our pattern matching.
In Lesson 1 of the intermediate section we look at arrays.