JavaScript Exercises for Beginners

There are two exercises. You can download all the files from the GitHub repo. Find the "Download ZIP" button on the right side.

You should be able to do these exercises after you finish the Codecademy JavaScript lessons from 1 through 10. It is assumed you also know some HTML. You don't have to know any CSS to complete these exercises.

In the first exercise, you'll make a numbers guessing game using JavaScript's pop-up dialog boxes. Here's a page that shows those boxes. Click the three buttons there to see how they work.

In the second exercise, you'll add a new question to an existing quiz (HTML) and update the JavaScript to make it work properly. Here's the quiz page. You can take the quiz to see how it works.

Like this? Thank @macloo