How many times will this program print "hello"?
var i = 10;
while (i > 0) {
println("hello");
i--;
}
JavaScript
0
10
i
This code will loop infinitely
1 answer
It will print "hello" 10 times.
var i = 10;
while (i > 0) {
println("hello");
i--;
}
JavaScript
0
10
i
This code will loop infinitely
1 answer