Question: javascript: Create a car object with the items: Make, Model, Year, Milage, and Color. Then create 3 methods in the object; A driveToWork method, driveAroundTheWorld
javascript: Create a car object with the items: Make, Model, Year, Milage, and Color. Then create 3 methods in the object; A driveToWork method, driveAroundTheWorld method, and runErrands method. Each of these methods should affect the cars mileage adding to it each time and console logging the old mileage and the new mileage. driveToWork = 33 miles driveAroundTheWorld = 24,000 miles runErrands = 30 miles
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
