0 10 20 30 40 50 60 70 80 90 100 22213 0

Welcome to type with code

Start typing or press to get going!

The vb code you'll be racing to type out is all about:

For Each loop

A for each loop means the code in the loop will run once for each item in an array.

This means it is a count-controlled loop because the number of times the loop will run is not dependent on a condition being met: you know how many times it will repeat in advance.

A for each loop is an example of definite iteration because the number of times the loop repeats is clearly defined.

This example will display the lyrics for "The wheels on the ... go round and round"  for an array containing the strings "bus", "car" and "tram"