Mathematical functions and constants can be called by using Math as an object. For example,
Math.E: the constant e,
Math.PI: the constant Pi.
Math.sin(x): function sin(x),
Math.cos(x): function cos(x),
Math.tan(x): function tan(x),
Math.pow(a,b): a to the power of b,
Math.log(x): log x of base e),
Math.exp(x) (exponent of x),
Math.abs(x): absolute value of x,
Math.sqrt(x): square root of x.
Some common operations:
* : multiply
/ : divide