0 votes
in JavaScript by

What is the output for the following 

function test(x) { 

while(x < 5) 

{ x++; } 

return x; } 

alert(test(2)); 

1 Answer

0 votes
by
five (5)

Related questions

+1 vote
asked May 31, 2020 in JAVA by SakshiSharma
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
...