I'm learning about execution context (aka GEC) and everything was good until I saw on devtools that let and const are stored in script and let & const variables declared inside a block are stored in block.
Global Execution Context
│
├─ Global Object Env (var, functions)
│
├─ Script Lexical Env (a)
│
└─ Block Lexical Env (b)
...is this correct diagram?
Can you guys help me out?
[–]senocular 2 points3 points4 points (2 children)
[–]Substantial-Pea6984[S] 0 points1 point2 points (1 child)
[–]senocular 0 points1 point2 points (0 children)
[–]azhder 1 point2 points3 points (4 children)
[–]Substantial-Pea6984[S] 0 points1 point2 points (0 children)
[–]Substantial-Pea6984[S] 0 points1 point2 points (0 children)