Math object: It is used to perform some basic mathematical operations Syntax: Math.function_name()

Functions : Sqrt: to find the square root of a number. Example : var a= 10; a.math.sqrt(); Or Math.sqrt(a);

Random (): it is used to generate random numbers between 0 to 1.

Pow(): It is used to find the power values Example : pow(2,5)

Abs (): it is used to display a negative number to a positive number

var a =-1000;
document.write(math.abs(a)) // 1000

Floor(): It is used to remove the point values Example : A=-10.9; Document.write(math.floor(a)) //10

Ceil: It is used to add 1 value. A=-10.9; Document.write(math.ceil(a)) // 11

Round()-- it is used to increment or decrement by 1 based on the point value.

Date object: The date is used to work with dates and times. It is used to display the date and time. Syntax : var Variable_name = new Date();

Methods : getDate(): display the current date only getMonth(): display the current month getYear(): display the current year. It is a deprecated method. It displays only the last numbers like year 21, 22.. getFullYear: display the current year.I t displays the full year getHours() : display the hours getMinutes() : display the minutes getSeconds() : display the seconds

Example : Var date = new Date(); Var date=date.getDate(); Var month=date.getMonth(); Var year = date.getFullYear(); Document.write(date+"/"+month+"/"+ year);

Display running time : SetInterval: to call the function more than once. To call a function based you passed a time parameter. The SetInterval method accepts two parameters.