Démarrer un nouveau fichier JavaScript proprement.
;(function (){ (1) (2)
'use strict'; (3)
// All code here.
}());
1 | Avoid beeing interpreted by too old and buggy interpreters. |
2 | Be executed once, while the page is loaded. |
3 | Use the new ECMAScript 5+ strict conventions to improve the language. |