a) The first way to create array
var names = new Array();
Add Elements in Array:-
names = "Vikas";
names = "Ashish";
names = "Nikhil";
b) This is the second way:
var names = new Array("Vikas", "Ashish", "Nikhil");
Answer:The math object provides you properties and methods for mathematical constants and functions.
var x = Math.PI; // Returns PI
var y = Math.sqrt(16); // Returns the square root of 16
var z = Math.sin(90); Returns the sine of 90
You can help us to improve by giving your valuable suggestions at firstname.lastname@example.org
By using the service of this site, I agree that I will serve wholeheartedly
and will not indulge in any sort of activity that threats the integrity of the organisation I am working for / I work for.
I have a firm believe in the notion that knowledge should be open source and
helping the needy and deserving part of society will always be my motto.
Knowledge is the power, Dont miss any paper, Subscribe to us