<html>
<body>
<h2>JavaScript Functions</h2>
<p>This example calls a function which performs a calculation, and returns the result:</p>
<p id="demo"></p>
<script>
function myFunction(p1, p2) {
return p1 * p2;
}
document.getElementById("demo").innerHTML = myFunction(4, 3);
</script>
</body>
<!-- Mirrored from www.w3schools.com/whatis/tryit.asp?filename=trywhatis_js_functions by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:13:33 GMT -->
</html>