a1exlism
10/16/2015 - 1:25 PM

javascript 'this' object

javascript 'this' object

var Point = new function(x,y){
this.x = x;
this.y = y;
}(1,1);
console.log(Point.x);