issues
search
RhodesPeter
/
tic-tac-toe
Tic-tac-toe game.
https://rhodespeter.github.io/tic-tac-toe/
MIT License
0
stars
0
forks
source link
Initial clean of code, related #10
#11
Closed
RhodesPeter
closed
7 years ago
RhodesPeter
commented
7 years ago
add
use strict
to catch variables being declared without
var
keyword
add
var
keyword to all variables (not ES6 in case of a later move into the browser where ES6 is not fully supported yet)
add spacing between functions
rename
X
variable to
player1
and 'O' to
player2
to avoid confusion with other variables.
related #10
use strict
to catch variables being declared withoutvar
keywordvar
keyword to all variables (not ES6 in case of a later move into the browser where ES6 is not fully supported yet)X
variable toplayer1
and 'O' toplayer2
to avoid confusion with other variables.related #10