JavaScript Quest

Welcome to JavaScript Quest!

What does a programming language look like in practice? In this lesson, you’ll read and run short JavaScript examples to see how a web browser follows the instructions in the code.

You’ll explore how JavaScript displays messages, how variables store values, and how code can change what appears on a webpage. You’ll also see how comments help people understand the code.

You don’t need to memorize JavaScript syntax. Keep the examples handy as you work. Focus on what each instruction does and what happens when the browser runs it.

Each activity includes questions to check your understanding. If the activity includes a code example, you must select Run before you can answer its questions. If you miss a question, wait 45 seconds after checking your answers. Then select Retry to answer the activity’s questions again.