In ECMAScript 5 (aka JavaScript,) I can trigger strict mode by adding "use strict"
at the top of my function (or file, but this is discouraged.)
I understand that in ECMAScript 6, certain syntax features will turn on strict mode, especially class
, and modules (however you do those.)
In the ECMAScript 6 world, what is the complete list of ways to trigger strict mode?