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

JavaScript can be evaluated top-level function by top-level function and file-by-file, modulo variable hoisting. You can create situations where everything is blocked, but that's not the norm.


Do you have numbers for how much of the web avoids variable hoisting? How much of the web has more than one top-level fn per file? Do these numbers shift significantly between different toolchains or methods of delivering JS?




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

Search: