How to create a chessboard/checkerboard pattern using pure JavaScript (Interview question)

Published --