News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by icedchai on Saturday May 15, 2021 @03:53PM (#27168400)
And that's all "extra" syntax.
Re:Modern Javascript: Everything you missed over the last 10... by JoyrexJ9 on Saturday May 15, 2021 @04:01PM (#27168474)
strict mode is the default in everything now and had been for many many years.
Re:Modern Javascript: Everything you missed over the last 10... by icedchai on Saturday May 15, 2021 @05:14PM (#27169093)
It isn't the default for a browser "<script>" tag.
Re:Modern Javascript: Everything you missed over the last 10... by xigoi on Saturday May 15, 2021 @05:54PM (#27169371)
It's the default for <script type="module">, which you should use anyway for anything serious.