DEV Community

Cover image for A way I've been using to make the loop more intention-clear WITHOUT (i=0; i<length; i++)
MrZenW
MrZenW

Posted on

A way I've been using to make the loop more intention-clear WITHOUT (i=0; i<length; i++)

let i = 10;
while (i --> 0) {
  // your fantastic code.
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)