Dom Events2

Exercise

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

Your code

Result

All exercises · Next: Dom Events3 →