the function tag in js

Solutions on MaxInterview for the function tag in js by the best coders in the world

showing results for - "the function tag in js"
Eduardo
01 Jan 2021
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>
Oscar
17 Aug 2019
1function myFunction() {
2console.log('Party time')
3}
4myFunction();
Jona
22 Jul 2020
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>
similar questions
queries leading to this page
the function tag in js