The Number valueOf() method

🆕 🔜 Check this out if you dream of running a solo Internet business 🏖️

Find out all about the JavaScript valueOf() method of a number

This method returns the number value of a Number object:

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