0
What is the value of the PI constant.
The qustion is putting ㅡ(ㅡ.ㅡ); and putting words in ㅡ between alert PI print Math const
3 ответов
+ 6
after the challenge, you can view the answer to every question, its not really advised to ask challenge questions in Q&A
+ 2
π=3.14285714...
+ 1
Javascript:
<!DOCTYPE html>
<html>
<body>
<p>Click the button to display PI.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = Math.PI;
}
</script>
</body>
</html>