Which loop statement is most efficient in JavaScript? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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