Skip to content

Teach block scope with one if statement - #382

Merged
ledsun merged 1 commit into
masterfrom
teach-block-scope
Nov 30, 2026
Merged

ledsun merged 1 commit into
masterfrom
teach-block-scope

Conversation

@ledsun

@ledsun ledsun commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Teach block scope with one familiar if statement and two variables named fruit. Learners predict what the same log statement prints inside and outside the block. After verification, a follow-up asks what happens when the inner declaration is removed.

Updated the starter, reference solution and explanations across all 13 locales. For each locale, selected the exercise through the CLI, completed the starter using its two comments, verified the orange/apple output, and checked the apple/apple follow-up. The full npm test suite passed.

Closes #296.
Closes #125.

@ledsun
ledsun merged commit eabc612 into master Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scope problem should be updated to ES2015 Scope Problem is Confusing

1 participant