JSFiddle - React, Tailwind, and code Playground
by lollero
JavaScript
function init() {
myCar.start_car();
myCar.stop_car();
}
var myCar = {
start_car: function start_car() {
console.log("car started");
},
stop_car: function stop_car() {
console.log("car stopped");
}
};
init();