You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
11. To check that **inputList** contains less than five elements, add newinputswith the **createNode** and **append** functions, and if**inputList** contains more than five elements, remove the event listener, and then enter the following code:
268
+
10. To check that **inputList** contains less than five elements, add newinputswith the **createNode** and **append** functions, and if**inputList** contains more than five elements, remove the event listener, and then enter the following code:
270
269
```javascript
271
270
if (inputList.length < 5) {
272
271
@@ -284,17 +283,17 @@ Ensure that you have cloned the 20480C directory from GitHub (**https://github.c
12. On the JavaScript page, to add an event listener on **DOMContentLoaded**, enter the following code:
286
+
11. On the JavaScript page, to add an event listener on **DOMContentLoaded**, enter the following code:
288
287
```javascript
289
288
document.addEventListener('DOMContentLoaded', function (event) {
290
289
291
290
});
292
291
```
293
-
13. To get a **newHobbyBtn** button by **getElementById**, add an event listener on the button, and attach an **addHobbies**function, enter the following code:
292
+
12. To get a **newHobbyBtn** button by **getElementById**, add an event listener on the button, and attach an **addHobbies**function, enter the following code:
0 commit comments