📜  严格模式 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:48.877000             🧑  作者: Mango

代码示例6
Strict mode makes several changes to normal JavaScript semantics:
-Eliminates some JavaScript silent errors by changing them to throw errors.
-Fixes mistakes that make it difficult for JavaScript engines to perform 
optimizations: strict mode code can sometimes be made to run faster than 
identical code that's not strict mode.
-Prohibits some syntax likely to be defined in future versions of ECMAScript.