📜block

use { ... } to group statements.

JSstatementother ⟩ block

(statement) use { ... } to group statements.

break / continue

📗 You Don't Know JS Yet: Scopes & Closrues

if the code you need to wrap a scope around has return / this / break / continue in it:

📗 You Don't Know JS Yet: Scopes & Closrues

A "variable" is just a property of the environment record (associated with the currently executing block /function /module /script).

Last updated