# The Number valueOf() method

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

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2019-03-20 | Topics: [JavaScript](https://flaviocopes.com/tags/js/) | Canonical: https://flaviocopes.com/javascript-number-valueof/

This method returns the `number` value of a Number object:

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