AG
Size: a a a
AG
q
AV
AG
AV
В
В
М
В
А
SA
J
Y
SW
SyntaxError: Cannot use import statement outside a module
J
j
Y
J
J
MF
this
?class Vegetable {Из за того что carrot просто объект как здесь?:
constructor(name, age) {
this.name = name;
this.age = age;
}
}
const carrot = new Vegetable("carrot", 13);
console.log(carrot.name); // => should be 'carrot'
console.log(carrot.age); // => should be 13
var vegetable = {name: 'pumpkin'};
vegetable.number = 13;
console.log(vegetable);