DEV Community

Discussion on: Strict mode in JavaScript

Collapse
 
abhishek_rath profile image
Abhishek Rath

Yeah, the strict mode became default after the introduction of ES6. I forgot to mention that in the post.
Thanks for sharing!!

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

Ahh, Now I get it.
Thanks!!