+ 1
Explain this code!
var num= 1; for(; num <6 ;num+=2){ num =num* num } console.log(num) //how result is 11
5 Respuestas
+ 7
This code will result in error - num is not defined
+ 4
daneillonge result is not 11. Since num is not defined, the code throws up an error.
https://code.sololearn.com/WtkHCB0PK8l1/?ref=app
+ 3
Anyways..i edited the code for u and explained it inside the code itself. Hope it helps. 🤗
https://code.sololearn.com/WU62ypTIQvYS/?ref=app
+ 2
no var num = 1 check the code again i have edit
0
mmm... I had try to find an explanation too... my result are here (take care it's not simple)
https://code.sololearn.com/W842O20CIf7F/?ref=app