Advertisements
Advertisements
प्रश्न
What is called a loop and what are its types?
थोडक्यात उत्तर
उत्तर
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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
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.