I'm starting with JavaScript and studied the following code. What does the new operater do? Is not the canvas.js calling itself and creates a canvas?
main.js
(function(){
new display.Canvas();
})();
canvas.js
(function(){
var Canvas = display.Canvas = function() {
this.createCanvas();
};
})();