0

Which loop statement is most efficient in JavaScript?

there are three loops statements in JS; for loop, while loop, do while loop. which is the most efficient one and why?

14th Jan 2018, 4:39 PM
Tanmay Shrivastava
Tanmay Shrivastava - avatar
1 Answer
+ 4
These are just kind of flow controllers! Efficiency is related to your algorithm! These 3 just have little differences with each other in syntax and behavior!
14th Jan 2018, 5:11 PM
Insight
Insight - avatar