x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
5
<p id="msg"></p>
6
<p><code>Math.PI</code> is a static property that represents the ratio of the circumference of a circle to its diameter. Therefore the result will always the same number, regardless of the circle's size.</p>
7
8
<script>
9
  document.getElementById("msg").innerHTML = Math.PI;
10
</script>