9.1.7 Checkerboard: V2 Codehs

// Create the canvas var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d');

// Function to draw a square function drawSquare(x, y, color) { ctx.fillStyle = color; ctx.fillRect(x, y, squareSize, squareSize); } 9.1.7 Checkerboard V2 Codehs

Subscribe to our Newsletter


Please check the box below to agree to the privacy policy and continue *


NOTE: if you're experiencing trouble with submitting this form, please try again using another browser.