Member-only story
JavaScript Tutorial — Lexical Environment
Here’s a list of my best web development tutorials.
Complete CSS flex tutorial on Hashnode.
Ultimate CSS grid tutorial on Hashnode.
Higher-order functions .map, .filter & .reduce on Hashnode.
Follow me @ Twitter, Instagram & fb to never miss premium articles.
Lexical Environment in JavaScript is created every time you create a scope using the curly brackets {}. It can be nested: {{…}}
Watch this video I that explains the idea behind Lexical Environments.
A Lexical Environment is created behind the scenes. It’s just a logistical concept. There is no way to actually access it from your JavaScript code.