Abstract

The loop statements are used to execute a code block several times. JavaScript has four kinds of loops: while, do-while, for, and for-in. As with the conditional if statement, the curly brackets for these loops can be omitted if there is only one statement in the code block.

Copyright information

© Mikael Olsson 2015

Authors and Affiliations

  • Mikael Olsson
    • 1
  1. 1.AlandFinland

Personalised recommendations