✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Given the following code, which statement should be added to draw() so that the square keeps re-entering from the left side once it leaves the canvas on the right?
let squareX = 0;
function setup() { createCanvas(400, 300);}
function draw() { background(200, 200, 200); rect(squareX, 150, 20, 20); squareX = squareX + 2;}