I think that's the reason that so many people (include me) hate var. It makes that so hard to see the scope. As someone who has JavaScript as not even second but third, I love it but it doesn't make sense many times. I really appreciate ES6. let would let the same code just throw an error would be expected.
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.
I think that's the reason that so many people (include me) hate
var
. It makes that so hard to see the scope. As someone who has JavaScript as not even second but third, I love it but it doesn't make sense many times. I really appreciate ES6.let
would let the same code just throw an error would be expected.