クラスカラー{
コンストラクタ(名前){
this.name =名。
}
}。
クラス形{
コンストラクタ(名前、色){
this.name =名。
this.color =色。
}
{)(描画
はconsole.log(this.name + this.color.name)。
}
}
CONST赤=新色( '赤')。
constの黄色=新色( '黄色');
CONST円=(赤い「丸」、)新しい形。
circle.draw();