Whatever begins, also ends.
— Seneca
(Seneca obviously didn’t know about getting your loop condition wrong … — mik)
Today, we are introducing a new concept: loops. Or, if you want to know more precisely: the while loop.
But, as always, we’re not doing this by just talking about the theory in a vacuum – we actually need it to progress with one of our projects, the Breakout game that we have seen before.
Loops are a concept fundamental to all programming, so if you are a learner, pay close attention. You will need this again later!
Concepts discussed: loops, while loop