Some Important JavaScript Functions
pop()
This array function is to remove the last element of an array, similarly push() can be used to insert an element.
Example:
var countries = Array(”India”,”America”,”Japan”,”China”);
countries.pop();
window.reload()
This function is used to reload the current browser window.
random()
This function is used to generate a random number. This function will return a random number (fractional) between 0 and 1. This will [...]