jQuery is cross-browser compatible. This means that when you run your code, the output will remain the same, independent of the browser. It won't change from one ...
In this tutorial you'll learn about a special type of functions — callbacks.
We will also look at pre-loading static assets like scripts, images and stylesheets into the browsers cache so that they can be instantly fetched from the cache which is a lot faster than downloading from a remote URL.
Let's get started!
Set-up for this tutorial
For this tutorial, to ensure that everyone sees similar results and is able to run the code properly, we will change some settings in Google Chrome.
Open up the console using Ctrl + Shift + J. In the t...
The Math module has functions to do various mathematical operations, and it also includes functions for generating random numbers. It has many constant values as well, like the value of pi (ratio of a circle's circumference to its diameter), etc.
Math.E is the Euler's constant — e. It is used as th...