---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Number.prototype.valueOf()

The **`valueOf()`** method returns the wrapped primitive value
of a `Number` object.

## Syntax

```js
valueOf()
```

### Return value

A number representing the primitive value of the specified `Number` object.

## Description

This method is usually called internally by JavaScript and not explicitly in web code.
