for() loop
The for loop repeats the code inside the squgly brackets ({}) until a certain condition is met. In the sytax for the for() loop you have to provide the following parameters separated by a semi-colon:
Unlike the for() loop in which yuo have to specify three parameters, in the while loop you only specify one pararmet, viz. the condition. The code in the squgly bracket { } keeps executing until the condition is met.
An example of the while loop() will be "while ( i <10 ){ }"