Output of the tricky for loop?

后端 未结 0 551
轮回少年
轮回少年 2021-01-14 21:54
for(var i=5; i%2==1?i=1:i++ && i<10; i++){
    console.log(i);
}

How does the value of i increments when i is assigned 1 everytime the fo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题