Stop misleading people with the variable is function scoped.
I’ve read a lot of articles on medium on var scope. So many of them will say var variables are function scoped but they fail to explain what happens when you use a var on a block scope and how it happens under the hood.
So like the rest of the articles say, var variables are function scoped but if you ever use a var variable in a block scope, you wont exactly get a reference error like I though it would.
I’m not quite sure how it does this but hey, just incase you ever wondered.
To be continued