📜block
use { ... } to group statements.
JS ⟩ statement ⟩ other ⟩ block
(statement) use { ... }
to group statements.
not block:
object literal / class / switch: no block scope❗
function:its scope is different from a block scope❗
won't operate across an IIFE function boundary to control an outer loop / block.
Last updated