Thanks for the great series explaining how scopes work in JS. I'm just curious what programming languages don't follow functions lexical scope pattern, but organize "containers" for variables differently?
I haven't personally worked with languages that use dynamic scope instead of lexical scope, but I read that Perl allows dynamic scope. Dynamic scope is harder to reason about because it relies on how the program runs instead of how the program is written.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the great series explaining how scopes work in JS. I'm just curious what programming languages don't follow functions lexical scope pattern, but organize "containers" for variables differently?
I haven't personally worked with languages that use dynamic scope instead of lexical scope, but I read that Perl allows dynamic scope. Dynamic scope is harder to reason about because it relies on how the program runs instead of how the program is written.