Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> the difference between lexical scope and block scope

There isn't a difference between lexical scope and "block" scope. What I think you are referring to as "block" scope, is a subset of lexical scope. The difference between var and let/const is where the boundaries of the lexical scope is.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: