3 ms·
Fun fact: code within a class definition is always strict mode code. Indeed, so is anything within a module.
by thomasfoster96 11y ago
Fun fact: code within a class definition is always strict mode code. Indeed, so is anything within a module.
- TazeTSchnitzel 11y agow-what?! So there is a new way to activate strict mode?!
- thomasfoster96 11y agoNope, you'll still need to use "use strict" if you're not in a class definition or a module. It's just that classes and modules are strict mode by default (and there's no way of changing that as far as I know).