# Source: https://github.com/quick-lint/quick-lint-js/blob/master/docs/errors/E0710.md

# E0710: '^' is the XOR operator; to exponentiate, use '**' instead

The Exclusive OR operator ^ can sometimes be mistaken for the
exponentiation operator **.

```javascript
let x = 2 ^ 8
```

If the intention was to exponentiate, the operator ^ should be replaced
with **

```javascript
let x = 2 ** 8
```

Alternatively, if the intention was to use the ^ operator for XOR operation,
The resulting literal could be used directly (2 ^ 8 = 10)

```javascript
let x = 10
```