This project implements the classic game of Tic Tac Toe, where two players take turns to place their mark (either "X" or "O") on a 3x3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.
- Two player mode.
- Interactive UI.
- Checks for winning conditions and draws.
The Video Game class is an object-oriented representation of a video game. It includes attributes like club, and player, as well as methods.
Chapter 6 of Eloquent JavaScript focuses on the Secret Life of Objects. It delves deep into the intricacies of object-oriented programming in JavaScript, covering topics such as:
- Encapsulation
- Prototypes
- Classes
- Inheritance
Chapter 9 of JSWay is centered around browser and DOM interaction. Key takeaways from this chapter include:
- Introduction to the Document Object Model (DOM)
- Manipulating elements and content
- Handling user events and inputs
Day 4 of the JS30 challenge puts focus on array methods and their practical applications. It provides hands-on exercises that revolve around:
filter(): To create a new array with all elements that pass the test.map(): To create a new array with the results of calling a function for every array element.sort(): To sort the elements of an array in place.reduce(): To execute a reducer function on each member of the array.