Skip to content

Instantly share code, notes, and snippets.

@christopherbauer
Created April 9, 2023 02:19
Show Gist options
  • Save christopherbauer/0dd2b7d289c411f1e87710bde829b871 to your computer and use it in GitHub Desktop.
Save christopherbauer/0dd2b7d289c411f1e87710bde829b871 to your computer and use it in GitHub Desktop.
Car-app index.js
const { NewCar } = require("@classlibrary/core-js");
const car = new NewCar(10, 10);
car.start();
car.drive(18);
car.drive(26);
car.drive(10);
car.drive(10);
car.drive(30);
car.drive(14);
car.drive(10);
car.drive(50);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment