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 parentheses).
Place the code you want executed by the function, inside curly brackets. Then, call the function.

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com