Javascript lesson - Making 1d battleship.