dhgamache/Tic-Tac-Toe-JS — comment on commit dfe71893976cd104bad4795e7c55da7771a369c4
File: tictactoe.js line 54
By marcusphillips:

This is an example of why you might want a board object instead of tracking player moves. You're scraping the DOM output to find your application state, which is a very brittle pattern. In general, you want your logic to be independent of the way its displayed, so logic and model code should never have to interpret DOM nodes to find out what the state of the application is.

Not super important for such a small program, but it's another great habit to get into.