Login
Remember
Register
Ask a Question
What is the output for the following expression?
+1
vote
asked
Feb 6, 2020
in
JavaScript
by
rajeshsharma
What is the output for the following expression?
function test(x) {
while(x < 5)
{ x++; }
return x; }
alert(test(2));
2
5
3
6
#java-script-expression
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 7, 2020
by
SakshiSharma
5 (five)
...