Number Data Type JavaScript Tutorial

The valueOf method gets the primitive value of a Number object as a number data type.