Функции в классы
Условие задачи
Переписать на классы
javascript
function Bike(model, color) {
this.model = model;
this.color = color;
}
Bike.prototype.getDetails = function() {
return this.model + ' bike has' + this.color + ' color';
};