JavaScriptでクラスを定義しています
function Pen(parent){
this.color = "#0000ff";
this.stroke = 3;
this.oldPt;
this.oldMidPt;
this.isActive = false;
this.parent = parent; //app that owns this pen
this.points = [];
this.curShape;
console.log(this);
return(this);
}
console.logステートメントでは、このクラスだけでなく、基本的に他のすべての状況に関するあらゆる種類の情報を取得しています。何故ですか?