Skip to content

9.1.7 Checkerboard V2 Answers Guide

Inside the inner loop, use an if/else statement combined with the modulo operator ( % ) to check if the sum of the row and column is even or odd. javascript

// Add the square to the canvas add(square); 9.1.7 checkerboard v2 answers