Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of JavaScript
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Services

Bookmark and Share
Lecture Comments (2)

0 answers

Post by nguyen yen on July 26, 2012

after the lesson i knw how to do the code but im asking for which situation to apply these examples above?

0 answers

Post by Jorge Guerrero on March 31, 2012

Thanks for a great lesson, Profr. Hillstrom; no doubt the more one practices the easier it gets to learn this and other languages. They all have similar structures. It's the syntaxis which gets tedious.


  • Loops, or repetition statements, repeat blocks of code without the programmer having to re-type them
  • Loops usually use Counters to count the number of times the loop has run
  • Counters usually use Increment and Decrement operators to add or subtract from the counter total
  • A continue statement skips the remaining statements in loop body and proceeds with the next iteration of the loop


Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Types of Loops 0:05
    • For Loop
    • While Loop
    • Do…While Loop
    • For…in Loop
    • Main Purpose of Loops
  • Example 1: For Loop 4:21
  • Example 2: For Loop with Total 7:00
  • Example 3: For Loop in HTML 10:31
  • Example 4: Reverse For Loop 12:02
  • Example 5: While Loop 14:08
  • Example 6: Do While Loop 15:50
  • Example 7: Break Loop 17:06
  • Example 8: Late Break Loop 18:42
  • Example 9: Continue Break Loop 20:05
  • Example 10: For…in Loop 21:28