re: How JavaScript variable scoping is just like multiple levels of government VIEW POST


Well splained Kevin... I do have a question though. Why are we referring to Consts as “variables” since by their definition a Const is immutable shouldn’t they be called Constants? Or am I missing something very fundamental?


Good question, Guido. According to the Microsoft docs, consts are technically variables:

Check out my guide to variables at the bottom. Variables are just containers for values that you initialize. So, a const still fulfills that definition.

code of conduct - report abuse