2017-02-22から1日間の記事一覧
// コンストラクタ var Car = function(id){ this.id = id; this.type = "truck"; } console.log(Car.id); // undefined console.log(Car.type); // undefined Car.id = 3; Car.type = 'sedan'; console.log(Car.id); // 3 console.log(Car.type); // sedan …