else if(buttons[i].classList.contains('e')) {
inputE(displayValue);
updateDisplay();
}
else if(buttons[i].classList.contains('sqrt')) {
inputSqrt(displayValue);
updateDisplay();
}
else if(buttons[i].classList.contains('pi')) {
inputOperand(Math.PI.toFixed(9));
updateDisplay();
}
else if(buttons[i].classList.contains('exponent')) {
inputOperator(buttons[i].value);
}
function inputE(num) {
displayValue = Math.exp(num).toString();
}
function inputSqrt(num) {
displayValue = Math.sqrt(num).toString();
}
else if(op === 'exponent'){
return Math.pow(x,y);
}