<html>
<body>
<p>This example calls a function which returns the value of PI:</p>
<p id="demo"></p>
<script>
function myFunction() {
return Math.PI;
}
document.getElementById("demo").innerHTML = myFunction();
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_state_return_pi by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:34 GMT -->
</html>