Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

the function tag in js

<html>
  <p id = demo> </p>
  <p> this javascript function is returning the product of p1 and p2.
 <script>
   function myFunction (p1, p2){
   return p1 * p2
   }
   document.getElementById("demo").innerHTML = myFunction(8, 8)
  </script>
 
PREVIOUS NEXT
Tagged: #function #tag #js
ADD COMMENT
Topic
Name
5+3 =