This method returns the number value of a Number object:

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

Download my free JavaScript Beginner's Handbook, and check out my premium React/Vue/Svelte/Node/Next.js courses!