class Car { constructor(make, model) { this.make = make; this.model = model; } start() { if (...) { // Logic to determine whether or not the car should start this.errorLog(`The car ${this.make} ${this.model} started.`); return true; } this.errorLog(`The car ${this.make} ${this.model} failed to start.`); return false; } errorLog(message) { console.log(message); } }