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

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

## Syntax

```js
valueOf()
```

### Return value

The primitive value of the given `Boolean` object.

## Description

The `valueOf()` method of `Boolean` returns the primitive value
of a `Boolean` object or literal `Boolean` as a Boolean data type.

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