iOS Development

Course No. 10-152-139

Chapter 8 — Loops

The while loop

  • Does this look familiar?

The for loop

  • How about this?

break

  • I think we’ve seen this, too. How did the C authors know what JavaScript was like?

continue

  • Hmm, did we do this?

The do-while loop

  • This is used less than the other loops. We’ll look at it for completeness.

Nested Loops

  • Remember this?
  • This can also be done easily with nested loops.
  • How would we do this?