Method 1 - `Math.pow(base , exponents)`

```
a = 2;
b = 4;
document.write(Math.pow(2, 4)) // 2^4 = 16
```

Method 2 - `base ** exponents`

```
a = 2;
b = 4;
document.write(2**4) // 2^4 = 16
```

Method 1 - `Math.pow(base , exponents)`

```
a = 2;
b = 4;
document.write(Math.pow(2, 4)) // 2^4 = 16
```

Method 2 - `base ** exponents`

```
a = 2;
b = 4;
document.write(2**4) // 2^4 = 16
```