Skip to content

Glossary: JavaScript Basics

Block

Also written: blocks

A group of statements inside curly braces, such as the code run by an `if` or a loop. Variables declared inside a block exist only there.

Where the book teaches it