Today I built my own Tic Tac Toe game using JavaScript, CSS, and HTML. What I used: Arrays to tra...Today I built my own Tic Tac Toe game using JavaScript, CSS, and HTML. What I used: Arrays to tra...
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Today I built my own Tic Tac Toe game using JavaScript, CSS, and HTML.
What I used:
Arrays to track the positions selected by players X and O.
Buttons to display the player's value (X or O).
Events, functions, loops, array methods, and querySelector for game logic and interactivity.
What I learned:
How to track button positions using arrays.
How to dynamically update and manipulate the webpage using JavaScript.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started