, решить) function Car(model) {
this. speed = 0;
this. model = model;
}
Car. prototype. accelerate = function(incr) {
this. speed += incr;
};
Car. prototype. decelerate = function(decr) {
this. speed = Math. max(0, this. speed - decr);
};
var volvo = new Car('Volvo');
Отметьте элементы массива Object. keys(volvo):
1. accelerate
2. speed
3. prototype
4. toString
5. model
6. hasOwnProperty
7. decelerate
Другие вопросы по: Информатика
Знаешь правильный ответ?
, решить) function Car(model) { this. speed = 0; this. model = model;}Car. prototype. accelerate = f...
Популярные вопросы