Interactive online courses HTML Academy
2026-03-09 12:23 Diff

The program has started to work with the live collection as it should. Now we can change the string output to the console to display a message on the app page.

To do this, we, as usual, must find the message in DOM and write it to the variable. And then we need to remove the hidden class from the message at the right moment so that it is displayed on the page. We already know how to remove classes. Use classList.remove() to do this.

Write the code and check that the message appears when all tasks in the list are completed.

children returns another collection type: HTMLCollection.

This collection contains only DOM elements. It may not include text content or line breaks as separate elements. All HTMLCollection are live in contrast to NodeList. You can read more about this collection in the specification and on MDN.