0
please someone can help me what's the out put of this function
function testļ¼nļ¼{ whileļ¼n <5ļ¼{ n++; } return n; } alertļ¼testļ¼2ļ¼ļ¼;
3 Answers
+ 2
// this code was copied with hidden special characters
function test(n){
while(n<5){
n++;
}
return n;
}
alert(test(2));
+ 1
With what you need help? Can you please describe more what you try to do with code you posted.
This code looks just fine.
+ 1
Just run it in Code Playground and you will see