
Adding Noughts and Crosses
Create a variable for the current player and set the inner text to display the value stored in each box. Then use an if and else statement to decide whether a nought or cross should be placed in the next box.
See the Pen M1 GB3 by Walker Books UK (@walkerbooks) on CodePen.