English

What is called a loop and what are its types?

Advertisements

Question

What is called a loop and what are its types?

Answer in Brief
Advertisements

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?
Chapter 15: Control Structure in Javascript - Evaluation [Page 329]
Advertisements
Share
Notifications



      Forgot password?
Use app×