Skip to content

Instantly share code, notes, and snippets.

Week 1 Weekend HW - Tic Tac Toe

Objective: Build a tic tac toe game in HTML and pure JavaScript.

This week we have been learning about writing functions, working with loops, and writing conditionals. We also learned about how to use JavaScript to interact with the DOM.

Now we're going to make a Tic Tac Toe game using all of this.

Core functionality

Functions and The DOM

Try the following exercises in the browser.

Practice With Functions

  • Write a function to swap the values at two different indicies in an array.