Advertisements
Advertisements
Question
What is called a loop and what are its types?
Answer in Brief
Solution
In JavaScript there are times when the same portion of code needs to be executed many times with slightly different values is called Loops. JavaScript supports three kinds of looping statements. They are
- for loop
- while loop
- do.. while loop
shaalaa.com
Looping / Repetitive
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Which of the following is not a looping statement?
Which part of the loop statement determines the number of times, the loop will be iterated?
In the _____ loop, body of the loop always executed at least once before the condition can be executed.
Differentiate between while and do while statements.
Explain for loop with example.
Write a Java Script program using while statement to display 10 numbers.