Loops are one of the first concepts that everyone learns once start programming. We have for loops, while loops, do-while loops, etc in most programming languages. What kind of for loops are you aware of in JavaScript? We have traditional for loop, forEach loop, for…of loop, and for…in loop. Have…