#Control Flow

3 posts

Modern Python Basics #3: Control flow — if, while, for, match-case
4 min read

Modern Python Basics #3: Control flow — if, while, for, match-case

Indentation-based blocks, range/enumerate/zip, and match-case pattern matching that has a different feel from switch.

JavaScript Basics #3 Control Flow
6 min read

JavaScript Basics #3 Control Flow

if/else, while, for, for...of, for...in, switch — JavaScript's branching and looping syntax, plus the gotchas and idioms you'll meet often.

Go Basics #3 Control Flow — if, for, switch
3 min read

Go Basics #3 Control Flow — if, for, switch

Branching and looping in Go — if with short statements, for as the only loop, switch with no implicit fallthrough.