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ļ¼‰ļ¼‰;

24th Sep 2022, 1:55 PM
ab2coding
ab2coding - avatar
3 Answers
+ 2
// this code was copied with hidden special characters function test(n){ while(n<5){ n++; } return n; } alert(test(2));
24th Sep 2022, 2:10 PM
JaScript
JaScript - avatar
+ 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.
24th Sep 2022, 3:07 PM
PanicS
PanicS - avatar
+ 1
Just run it in Code Playground and you will see
25th Sep 2022, 2:25 AM
Emerson Prado
Emerson Prado - avatar