DEV Community

Discussion on: Ultimate JavaScript CheatSheet

Collapse
 
scipion profile image
Scipion

Do while snippet is wrong. In line 2 should be a "do" instead of a "while". Also the condition in last line, "(1 < 100)" makes an infinite loop, it seems it should be "i" instead of "1".

Some comments have been hidden by the post's author - find out more