Skip to content

Commit

Permalink
Fix Boolean.prototype.valueOf() no variable (#37357)
Browse files Browse the repository at this point in the history
  • Loading branch information
T34-active authored Dec 24, 2024
1 parent a92e10b commit 86aba12
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ This method is usually called internally by JavaScript and not explicitly in cod
### Using `valueOf()`

```js
x = new Boolean();
myVar = x.valueOf(); // assigns false to myVar
const x = new Boolean();
const myVar = x.valueOf(); // assigns false to myVar
```

## Specifications
Expand Down

0 comments on commit 86aba12

Please sign in to comment.