Would this enable “use strict” globally?

前端 未结 3 1619
温柔的废话
温柔的废话 2021-02-02 09:20

Similar, but not the same as, How to enable ECMAScript \"use strict\" globally?

I have bought JavaScript Patterns and it recommends enabling use strict. Adding it to the

3条回答
  •  无人及你
    2021-02-02 09:50

    JSLint is suddenly reporting: Use the function form of "use strict"

    (function () {
        "use strict";
        // put all of your strict code here
    
    
    }());
    

提交回复
热议问题