Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Rust Programming Tutorial #8 – While Loop

30.7K views on YouTube

dcode 42 tutorials here

In the previous I went over the ‘loop’ keyword for creating infinite loops – in this one I’ll be talking about the ‘while’ loop which allows us to execute code repeatedly as long as a condition is met.

If you want to know how to use ‘break’ and ‘continue’, check out my video on ‘loop’:

If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!