In this exercise, you'll need to solve a set of increasingly difficult puzzles aimed at helping you master manipulating the DOM.
TIP: You're encouraged to use online documentation to lookup how to use unfamiliar concepts.
To get started, download this code onto your machine by following these setup instructions.
- Fork this repository to your own GitHub account.
- Clone your forked repository to your development environment.
- Open the repository's project directory in your text editor.
- Open the
assignment.html
file in your web browser.
In your web browser, you'll see a page that shows a bunch of failing JavaScript tests. Locate the area that shows how many tests are passing and how many are failing.
Your job is to make all these JavaScript tests pass by completing their respective puzzle.
- Open the
assignment.js
file in your text editor. - Read the instructions for each puzzle.
- Solve the puzzle by writing JavaScript.
Once it's ready, test your solution.
- Tab over to the browser with
Command + Tab
. - Refresh the browser with
Command + R
. - Scroll to the puzzle's test and see if it's still red.
- Once the test is green, you've solved the puzzle.
You can see how each test invokes the puzzle's function by clicking on the test description.
You may encounter challenges that seem confusing or impossible. Don't despair! This exercise is designed to challenge you. Resist the urge to just copy-and-paste code from your classmates, but definitely ask for help and talk to your peers.
When you're done with the main assignment, your page should look like this. Green check marks next to each test means the entire test suite is passing.