logo

Crowdly

Browser

Add to Chrome

The code below has multiple bugs. Which option(s) correctly identify all of them...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

The code below has multiple bugs. Which option(s) correctly identify all of them? (More than one answer is correct.)

let offset = 0;

function setup {

  createCanvas(400, 400);

}

function draw() {

  background(220);

  for (y = 0; y < 4; y--) {

    rect(200, 50 * y + offset);

  }

  offset = offset + 5;

  if (offset > height) offset = 0;

}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on elearning.aua.am?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome