JavaScript scope and closure

Content:

Original link: JavaScript Scope & Closure: Stop Memorizing, Start Understanding / Dev / Saiful Bashar.

Per a comment then const would be preferred today to avoid issues. But I would still consider it relevant to understand the mechanism.

Comments: