So, I was reading about this so-called “temporal dead zone,” where accessing a variable before declaring will cause a reference error (unless it’s a var). So I’ve been wondering, so since it explicitly said that “before” declaring the variable, does it mean that when trying to execute the program (I assume in the parsing stage where it makes the AST), it will first acknowledge all identifiers (variable names) before putting their values? So imagine that there’s a step-by-step process for making the tree, and it will first add the identifier names, then maybe, after a few steps, add all the values for it.
Clear explanation I guess