+ 6

what is js framework?

In many framework they are using 'use strict'; start with (function(){ --------- ------- })();

16th Nov 2018, 1:16 AM
Mahesh Muttinti
2 Antworten
+ 8
The function is supposed to keep everything out from the global namespace. Strict mode has more strict "rules" on execution and it throws more exceptions. Mistakes like declaring global variables, repeated literal object keys and parameters are handled as errors.
16th Nov 2018, 1:50 AM
Toni Isotalo
Toni Isotalo - avatar
0
Take a deep look at ECMAScript, you'll understand
17th Nov 2018, 12:25 PM
Vinny Reis
Vinny Reis - avatar