Skip to content

Glossary: TypeScript Basics

hoisting

A JavaScript behavior where function declarations are set up before any code runs, so they can be called above their own line. This is why TypeScript can't be sure a null check has run before a `function` declaration is called.

Where the book teaches it

Related terms

narrowing