- Регистрация
- 1 Мар 2015
- Сообщения
- 1,481
- Баллы
- 155
JavaScript isn't broken — but if you've ever wondered why a variable returns undefined or a function throws an error before it's even called... you're not alone.
Many developers hit weird bugs due to scope and hoisting without realizing what's really going on. I just dropped a post that breaks down:
If you've ever thought “JavaScript makes no sense”, this post is for you.
? I wrote the full breakdown here:
Many developers hit weird bugs due to scope and hoisting without realizing what's really going on. I just dropped a post that breaks down:
Why var, let, and const behave so differently
How JavaScript really handles function and block scopes
What hoisting actually does (and doesn’t)
How to write bug-free, predictable code
If you've ever thought “JavaScript makes no sense”, this post is for you.
? I wrote the full breakdown here: