Exercise v1.3

Exercise:

Use the DOM to assign an onclick event to the <button> element. Clicking the button should trigger displayDate().

Hint: element.event = function(){displayDate()};

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