Exercise:

Add an onclick event attribute to <button>. Clicking the button should trigger myFunction().

Syntax hint: <element event="some JavaScript">

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