Q. Consider the following statements
var count = 0;
while (count < 10)
{
console.log(count);
count++;
}
In the above code snippet, what happens?
var count = 0;
while (count < 10)
{
console.log(count);
count++;
}
In the above code snippet, what happens?
β
Correct Answer: (B)
The value of count from 0 to 9 is displayed in the console