Introduction To Loops
Introduction
Loops are used to perform any specific task multiple times.
Technically, In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.
For Example : Lets say you want to print "Hello World" 10 times, then what will you do?
You will write console.log("Hello World") 10 times. Right? But what if i ask you to write "Hello World" 1000 or 10,000 Times. You can't use manual approach to achieve this.
So, We will you concepts of Loops to Achieve This.
Types of Loops
- While Loop
- Do/While Loop
- For Loop
- For In Loop
- For Of Loop
You Will Be Studying about them in Next Chapters.