Printing out pi as a symbol instead of the numerical value but calculating with the numerical value in the background in JavaScript
تبليغسؤال
I am coding a calculator and I want that the calculator is displaying pi as a symbol and not as the numerical value.
My associated function is
function Pi(pi) {
document.getElementById('resultArea').innerHTML += pi
eval(document.getElementById('resultArea').innerHTML) = x
...