Skip to main content
Version: 4.0.1

Number.prototype.valueOf()

The valueOf() method returns the wrapped primitive value of a Number object.

Syntax​

valueOf()

Return value​

A number representing the primitive value of the specified Number object.

Description​

This method is usually called internally by JavaScript and not explicitly in web code.