Raj Maharjan Posted on Jun 18, 2020 Loop micro-optimization #javascript #microoptimization Because: For loop uses one less variable Count down to 0 is usually faster because it's more efficient to compare to 0 than others. Top comments (0) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)