Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Use a Block-Scoped Value

Variables declared with const or let inside a block exist only between that block's braces.

Example

if (true) { const status = "ready"; console.log(status); }

Your task

Predict the badge displayed inside the matching branch. Replace the empty prediction and placeholder badge, keeping both the declaration and actual output inside the if block.