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

Only with JS <1.7. Otherwise you get block scope by using 'let instead of 'var.


Only SpiderMonkey (Gecko) has that. And it will remain that way for the foreseeable future.




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

Search: