Kids

Can

JavaScript

Loops

Loops repeat blocks of code for as long as or until certain conditions are fulfilled
For loops often repeat code from a start point, until an endpoint is reached.
For in loops walks through an object's list of keys, and executes code block with each key.
While loops take a conditional expression and repeat the code block for as long as the condition is true.
Do While loops are the same as While loops, except they execute the code before checking the condition

  • for looptake 3 statements, that determine for how long to repeat code
  • for inloop repeats code for each key in an object.
  • while looprepeats for as long as condition is true
  • do whileexecute code before checking condition


  • <-----Back        Next --->

    This username already exists.

    This username already exists.

    Login or register to save your work.

    User name field is empty.

    Your username needs to be at least 7 characters long.

    Your username can not contain any of the following characters: ",', <, > , < and whitespaces.

    Please enter a correct email addresss .

    This email address is not found in our database .

    Your password needs to be at least 7 characters long.

    login
    username
    password
    forgot password
    email
    register
    username
    password
    email