What is strict mode?
How to turn on strict mode?
- Script to enable strict mode
- Function turns on strict mode
What can't be used in strict mode?
- Undefined variables cannot be assigned directly. (Can be used in non-strict mode)
- Cannot delete defined variables at will in strict mode
- In strict mode, this in the global function no longer points to window, but undefined
- In strict mode, function parameters are not allowed to have the same name.