How it Works: Querying the Document

In this lesson, we learn the implementation of the previous lesson's exercise. Let's begin!

How it works

Because originally hideandseek.js was empty, including it in index.html did not actually run any JavaScript code.

However, in step three, when you added code to this file it was executed. That is how the output in the below image was created.

Get hands-on with 1400+ tech skills courses.