Javascript examples for Function:Quiz
A function is defined with the function keyword, followed by a name, followed by parentheses().
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> function myFunction() {//from w w w . jav a 2s .co m document.getElementById("demo").innerHTML = "Hello World!"; } myFunction(); </script> </body> </html>