what are loops?

Imagine you have a problem statement where you have to run a group of statements continuously until a particular condition is met. Now imagine doing this task without loops.

isn’t that nearly impossible, and so it is important to know, understand, and effectively use loops while coding.

JavaScript Loop provides a quick and easy way to do repetitive tasks. They offer to perform iterations with only a few lines of code. Iteration is the number of times you want to repeat the task (that number can even be zero). …

Thushini Dulasha

Undergraduate at University Of Moratuwa

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store