Definition and Usage The Number() function converts the value of an object to a number. Syntax Number(object) Parameter Description object Required. A JavaScript object Tips and Notes Note: If the parameter is a Date object, the Number() function returns the number of milliseconds since midnight January 1, 1970 UTC. Note: If the object's value cannot be converted to a number, the Number() functi..