Number valueOf() method

Find out all the information about the JavaScript valueOf() method of numbers

This method returnsnumberThe value of the Number object:

const age = new Number(36)
typeof age //object
age.valueOf() //36

Download mine for freeJavaScript beginner's manual


More js tutorials: