JSFiddle - React, Tailwind, and code Playground
JavaScript
var myCar2 = {
maxSpeed: 70,
driver: "shon",
drive: function(speed, time) {console.log("speed " + (speed*time));},
logbook: function(a,b) {
console.log("max speed " + this.maxSpeed + " " + this.drive(a,b));
}
};
myCar2.logbook(3,6);