❌ Using two separate loops for colors.
❌ Forgetting to set the fill color before adding the rectangle.
❌ Off-by-one errors in the loop conditions.
❌ Hardcoding square size and board dimensions without using constants.
Bad Code:
for (let row = 1; row <= 8; row++) // Rows 1-8 instead of 0-7
Fix: In programming, grids almost always start at index 0. Use row < 8. 9.1.7 Checkerboard V2 Codehs
Would you like help with a specific error message or a different variation of this checkerboard problem? ❌ Using two separate loops for colors