✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
A student writes the following code. What will be drawn on the canvas?
function setup() { createCanvas(400, 400);}
function draw() { background(220); drawSquares(4, 60);}
function drawSquares(total, x) { for (let i = 0; i < total; i++) { rect(x, 40 + i * 80, 30, 30); }}