Created
April 9, 2023 02:19
-
-
Save christopherbauer/0dd2b7d289c411f1e87710bde829b871 to your computer and use it in GitHub Desktop.
Car-app index.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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