The operator produces some operation on single or multiple operands then produces a result. For example: 7 + 5 , where + sign is an operator. 7 is a left operand & 5 is the right operand. ‘+’ operator adds two numeric values and produces a result which is 13 in this case.
An array is a special type of variable, which can able to store multiple values using a special syntax. Every value is connected with a numeric index starting with 0. Array is used to store a collection of data. But it is more useful to think that an array is a collection of variables of the same type.
Some important methods of array are:
pop() method removes the last element from an array.
push() method adds a new element to an array (at the end).
shift() method removes the first array element.
unshift() method adds a new element to an array (at the beginning).
splice() method can be used to add new items to an array.
slice() method slices out a piece of an array into a new array.
Some important methods of math are:
math.round() method returns the nearest integer number.
math.sqrt() method returns the square root of a number.
math.ceil() method returns rounded up to its nearest integer.
math.floor() method returns rounded down to its nearest integer.
math.random() method returns a random number.
Null & Undefined