property Declaration.blockScoped

Whether it belongs to the block it was written in — let, const and class do.

What decides its fate when the page carries on: block-scoped names were written inside the block the breakpoint stopped in and go when it does, while var and function are the ones JavaScript hoists out of blocks and everyone expects to still be there afterwards.

Type

boolean

Usage

import { type Declaration } from "lib/repl/input.ts";