JavaScript & jQuery Tutorials

JavaScript Advanced

In these advanced lessons we start by taking at look at some more conditional statements and then see how to utilize JavaScripts error handling. We then take a final look at maths by exploring the
Number and Math global objects. After this we finish our three part lessons on object creation
before looking at the domain object model and how to bring our pages to life with events. We then tackle the tricky subjects of function recursion and closures before finishing our study of Javascript by looking at the
globals and functions not covered in previous lessons.

Sometimes things go wrong in our code and an error is raised which we can deal with. Javascript has several predefined objects to deal with errors and the
try....catch....finally and throw statements which give us some control over them.
In this lesson we look at errors and how to handle them.

The Number global object allows us to wrap an object for mathematical use and comes with several useful properties and instance methods. In this lesson we look
into Number creation and use some of the properties and methods available with this global object.

The Math global object is a static object which means we cannot instantiate objects of type Math. All the
properties and methods of this class are also static and so we access these using syntax such as Math.aPropertyName or Math.aMethodName. In this lesson we explore some of the properties and methods
of the Math object with examples of their usage.