In JavaScript what does for(;;){…} do?

前端 未结 5 996
感动是毒
感动是毒 2021-01-26 08:40

I\'ve seen this in some JavaScript code but I don\'t get what it does.

for(;;){

  //other code

}

I\'m used to the for(i=0;i

5条回答
  •  囚心锁ツ
    2021-01-26 09:29

    always true https://developer.mozilla.org/en/JavaScript/Reference/Statements/for

提交回复
热议问题