Step 1

Clone the starter code:

git clone https://github.com/cs280fa21/tic-tac-toe-starter

This lesson is designed as a coding exercise. It provides you with an opportunity to practice what we've covered so far, in particular JavaScript Control flow. Moreover, there is an opportunity to employ JavaScript functions for a modular structure. The latter will be covered in detail in another chapter.

If you are lucky, you make mistakes and will have a chance to use the debugger as well!

The starter code contains three following files:

  • .gitignore
  • README.md
  • index.html
  • style.css
  • script.js

We will review HTML, CSS, and JavaScript files in the following sections.