Tutorials
THE WORLD'S LARGEST WEB DEVELOPER SITE

Exercise:

Define a function named "myFunction", and make it display "Hello World!" in the <p> element.

Hint: Use the function keyword to define the function (followed by a name, followed by parantheses). Place the code you want executed by the function, inside curly brackets. Then, call the function.