Search
 
SCRIPT & CODE EXAMPLE
 

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>
Comment

the function tag in js

function myFunction() {
console.log('Party time')
}
myFunction();
Comment

PREVIOUS NEXT
Code Example
Html :: text -center bootstrap 
Html :: html button with href 
Html :: alpine hide element after set time 
Html :: html sup tag 
Html :: link d3 
Html :: horizontal line html 
Html :: vue click escape key 
Html :: how to align nav links in bootstrap 5 
Html :: html code tag 
Html :: how to put text next to a checkbox in html 
Html :: viñetas html 
Html :: how to create animated text in html 
Html :: bootsrap card 
Html :: how to display image in div using id in html 
Html :: button in input tailwinds 
Html :: how to use font awesome icons in html 
Html :: instagram icon 
Html :: vs code html formatter 
Html :: html radio input 
Html :: how to select the another page section in html 
Html :: html elements list explained 
Html :: insert text html 
Html :: slider input 
Html :: entrata alerts 
Html :: background color bootstrap 
Html :: Shubham Narayan More Html Notes 
Html :: mat-icon outline 
Html :: can you stop prettier from line wrapping html 
Html :: mozilla date input 
Html :: html container farbverlauf 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =