I file in a project contains the following code:
//begin of the file
((window) => {
'use strict';
class View extends GSM.EventEmitter {
constructor() {
super();
//some function here
}
})(window);
//end of the file
- What does this structure mean?
- What is this line for
((window) => {}(window);
? - What does
constructor()
mean ?
My English a little poor,hope I make the question clear.:-)