Reading about ECMAScript 5's strict mode I learn that:
Certain language functions are so pervasive that performing runtime checks has considerable performance cost. A few strict mode tweaks, plus requiring that user-submitted JavaScript be strict mode code and that it be invoked in a certain manner, substantially reduce the need for those runtime checks.
Some of those tweaks could be:
- Never use
null
/undefined
as first argument in acall
/apply
method. - Do not create new globals variables inside a function.
Questions:
Are there some JavaScript frameworks written in strict mode? So we can trust that our "strict" code will not be wasted?
Should I start paying attention to
strict mode
no matter what? I mean is it blindly adopted as a good practice?