What is use strict in javascript?
satya - Thu Oct 11 2012 09:51:38 GMT-0400 (Eastern Daylight Time)
What is use strict in javascript?
What is use strict in javascript?
satya - Thu Oct 11 2012 09:53:22 GMT-0400 (Eastern Daylight Time)
John Resig's comments on use strict and a few other JS 5 features
John Resig's comments on use strict and a few other JS 5 features
satya - 4/21/2014 3:06:59 PM
Strict Mode
It catches some common coding bloopers, throwing exceptions.
It prevents, or throws errors, when relatively ?unsafe? actions are taken (such as gaining access to the global object).
It disables features that are confusing or poorly thought out.
satya - 4/21/2014 3:07:43 PM
Example
function imStrict(){
"use strict";
// ... your code ...
}