DEV Community

Discussion on: Strict mode in JavaScript

Collapse
piotrlewandowski profile image
Piotr Lewandowski

"strict mode became default after the introduction of ES6." - no, it did not. Like Jon above said: MODULES introduces in ES2015/ES6 are strict by default. Everything else is still as it was - "sloppy mode" -until you add 'use strict'; into your code ;)

Thread Thread
abhishek_rath profile image
Abhishek Rath Author

Ahh, Now I get it.
Thanks!!