I don't know how to use the `Math.pow()` when I have 1 variable that gets my inputs which is `inputVal`. This is how I did it.

```
else if(pow == true){
    if(equation.indexOf('^') == inputVal){
        inputVal = inputVal.replace('^', '');
        input.innerHTML = Math.pow(inputVal);
    }else{
        input.innerHTML = 'Syntax Error';
        pow = false;
    }
}

```

I tried to do this on my own, and it doesn't work.

I've also tried this

```
else if(pow == true){
    input.innerHTML = Math.pow(inputVal);
}else{
    pow = false;
}

```