Understanding Loops - A Tangible Example
Tyler V. (he/him)
Posted on June 18, 2024
This is a submission for DEV Computer Science Challenge v24.06.12: One Byte Explainer.
Explainer
1 - Setup
Get paper, draw a cake, and set age
to your age.
2 - Do Loop
age
isn't 0, so draw a candle and subtract 1 from age
.
3 - Checkup
Is age
still greater than 0? Go to step 2
Otherwise, go to 4.
4 - 🎉
Celebration time!
Additional Context
I didn't include markdown in my count - ended up at 248 according to VS Code:
💖 💪 🙅 🚩
Tyler V. (he/him)
Posted on June 18, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.