JavaScript, Constructor Function, Prototype Chain, Front End Development.
stopped"); }; ford.stop(); // vehicle stopped You can also send parameters to prototype. car.prototype.stop = function(handbrake){ if (elfreni) { console.log("vehicle stopped with handbrake"); return; } console.log("vehicle stopped"); }; ford.stop(true); // the vehicle is stopped with the handbrake