Not to be confused with wanting to know how use strict works, but why is strict mode activated with 'use strict';
or "use strict";
as opposed to an expression like use strict;
?
use strict;
would throw an error in JS engines that did not support strict mode.
Using a string is backwards compatible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With