+1 vote
in JavaScript by
What is the output for the following expression?

function test(x) {

while(x < 5)

  { x++; }

return x; }

alert(test(2));

2

5

3

6

1 Answer

0 votes
by
5 (five)
...