# While and Do While Loops

## video 10: 'While' loop

Array

Array

Array

Array

Array

## again,

startCount equals 1

startCount equals 2

startCount equals 3

startCount equals 4

startCount equals 5

startCount equals 6

startCount equals 7

startCount equals 8

startCount equals 9

startCount equals 10

## video 11: 'Do' loop

whose usefulness consists in always echoing out a first iteration, even if false

First, a case where it does run through the series:

startCount is equal to **2**

startCount is equal to **3**

startCount is equal to **4**

startCount is equal to **5**

startCount is equal to **6**

startCount is equal to **7**

startCount is equal to **8**

startCount is equal to **9**

startCount is equal to **10**

Next, a case where we hilariously, I mean deliberately set it to fail; it still echoes out once.

startCount is equal to **9**