Loops repeat code. for iterates over anything with an iterator — ranges, arrays, lists, strings. while checks a condition before each iteration; do-while runs at least once. Use repeat(n) { } when you only need a counter 0 until n-1.
for — iterate over a collection or range
Content is available with subscription.
Get full access to all courses on the platform for one year with a single payment.
▼
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.