0
What is the output for the following function test(x) { while(x < 5) { x++; } return x; } alert(test(2)); 6 3 2 5

Open 1 Answers 286 Views Technology

What is the output for the following
function test(x) {
while(x < 5)
{ x++; }
return x; }
alert(test(2));
A) 6
B) 3
C) 2
D) 5

#insurance and Loans 

1 Answer

0

Answer:-5

#insurance 

by (301k points)
...