Hacker News new | comments | show | ask | jobs | submit login

This is a good summary of the delta.

However, the article author didn't really explain why strict mode is interesting. One of the core requirements of ECMAScript 3.1 (now 5) was to make the language more secure.

For example, in strict mode you can't declare new variables which are eval'd. This makes it harder to XSS. As does the reservation of eval (so it can't be overridden) and the denial of access to the global object.

This is really important because using strict will not only make your JavaScript better (more like "The Good Parts") but also more performant (less global scope) and more secure.




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

Search: