Skip to main content
Version: 3.27.2

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.