logo

Crowdly

Browser

Add to Chrome

Consider the following JavaScript code. let y = 10; ...

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

Consider the following JavaScript code.

let y = 10;

while (y > 1) {

console.log("Looping...");

y = y - 2;

}

How many times will the text “Looping...” be output to the console when the code is executed?

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

Want instant access to all verified answers on moodle.royalholloway.ac.uk?

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

Browser

Add to Chrome