1<html>
2 <p id = demo> </p>
3 <p> this javascript function is returning the product of p1 and p2.
4 <script>
5 function myFunction (p1, p2){
6 return p1 * p2
7 }
8 document.getElementById("demo").innerHTML = myFunction(8, 8)
9 </script>
1<html>
2 <head>
3
4 </head>
5 <body>
6 <p id = demo> </p>
7 <script>
8 function myEquation(p1, p2, p3, p4) {
9 return p1 * p2 * p3 * p4
10 }
11 document.getElementById("demo").innerHTML = myEquation(8, 7, 1, 9);
12 </script>
13 <p> 504 is the answer of my function that made the script say 8x7x1x9.
14 </body>
15</html>