Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

231
Views
Difference between Lexical Environments and Environment Records in modern ecmaScript

I try to understand how closure is working under the hood. So I've read a lot of documentation and so many different websites.

Then I read this Variable Environment vs lexical environment

And in old documentation (2011) https://262.ecma-international.org/5.1/#sec-10.2

there are two different things, LE and ER.

But in modern https://262.ecma-international.org/12.0/#sec-environment-records

There is only one, environment record, and description of it is very similar to the old describe of lexical environments/

So, I am really confusing. Does LE still exist for modern javaScript (ecmaScript 6+)? What the difference between LE and ER?

over 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Virtual assistant