Posts

Showing posts with the label use strict

ES5 and use strict

Update There was another article about it which has less examples but more complementary points or descriptions. Moreover, that page links to a specific use strict compatibility page , right now green only with Firefox Aurora and Google Chrome Canary . However, another page shows more use strict cases as well and Canary seems to miss one check while Webkit Nightly shows all green YES. Opera Next is not there yet while IE10 surprisingly scores all of them except Function declaration in statements. Well done guys! on page 233 of the ECMAScript 5th Edition we can read details about "use strict" activation and what it means for our code. Somebody believes this ES5 feature can help developers to write less errors ... well, I think not everything is that good as it looks. This post is about all those points with concrete examples. No OctalIntegerLiteral or OctalEscapeSequence Base 8 has not many use cases on daily JS tasks. As example, to obtain the number 8 in base 8 we c...