Skip to content

Commit 3582e87

Browse files
author
Edward King
committed
Working on Exercises
1 parent c057e96 commit 3582e87

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dom-and-events/exercises/script.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ function init () {
44
const paragraph = document.getElementById("statusReport");
55

66
// Put your code for the exercises here.
7-
7+
button.addEventListener('click', event => {
8+
paragraph.innerHTML = 'Houston! We have liftoff!';
9+
});
10+
missionAbort.addEventListener("mouseout", function( event ) {
11+
event.target.style.backgroundColor = "";
12+
});
813
}
914

1015
window.addEventListener("load", init);

0 commit comments

Comments
 (0)