loading...

re: Pure and Simple - Tic Tac Toe with Javascript VIEW POST

FULL DISCUSSION
 

What is data-cell-index btw?

 

The data-cell-index is a custom attribute on an HTML element, you can read more about them here: developer.mozilla.org/en-US/docs/L...

We are using it to more cleanly track the position of the cell that has been clicked and to update the game state array at its position.

code of conduct - report abuse