Skip to content
FLAVIO COPES
flaviocopes.com
2026

The Number valueOf() method

By Flavio Copes

Learn how the JavaScript Number valueOf() method returns the primitive number value wrapped inside a Number object, turning that object back into a number.

~~~

This method returns the number value of a Number object:

const age = new Number(36)
typeof age //object
age.valueOf() //36
Tagged: JavaScript ยท All topics
~~~

Related posts about js: