Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Cars {
- constructor(car_name, model_year) {
- this.name = name;
- this.year = year;
- }
- }
- let myCar = new Cars("FIAT", 2007);
- let yourCar = new Cars("Honda", 2000);
- let hisCar = new Cars("Volkswagen", 1996);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement