Multiple counters in Javascript for loop

后端 未结 3 679
长情又很酷
长情又很酷 2020-12-08 02:50

Before i tear my hair out and go down the wrong path in terms of debugging. Can someone confirm that this code will do as intended. Ie. animate 5 divs to different positions

3条回答
  •  盖世英雄少女心
    2020-12-08 03:08

    You made gramatical errors in your code that you could have easily spotted had you used static code analysis tools such as the lovely JSHint.

    In addition, you should further understand the use of the comma operator in JavaScript, our site has a few answers on it already.

提交回复
热议问题