# ee.Number.bitwiseXor

Calculates the bitwise XOR of the input values.

<br />

| Usage | Returns |
|---|---|
| `Number.bitwiseXor(right)` | Number |

| Argument | Type | Details |
|---|---|---|
| this: `left` | Number | The left-hand value. |
| `right` | Number | The right-hand value. |

## Examples

### Code Editor (JavaScript)

```javascript
/**
 * Unsigned 8-bit type example.
 *
 * 25 as binary:         00011001
 * 21 as binary:         00010101
 * Only one digit is 1?: 00001100
 *
 * 00001100 is unsigned 8-bit binary for 12.
 */

print(ee.Number(25).bitwiseXor(21));
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

```python
"""Unsigned 8-bit type example.

25 as binary:         00011001
21 as binary:         00010101
Only one digit is 1?: 00001100

00001100 is unsigned 8-bit binary for 12.
"""

display(ee.Number(25).bitwiseXor(21))
```