Answers for "javascript for backend"

0

javascript for backend

//using es6 classes
class Vehicle {
  constructor(name, maker, engine) {
    this.name = name;
    this.maker =  maker;
    this.engine = engine;
  }
}
  
let car1 = new Vehicle('GT', 'BMW', '1998cc');
  
console.log(car1.name);  // GT
Posted by: Guest on July-26-2021

Code answers related to "javascript for backend"

Code answers related to "Javascript"

Browse Popular Code Answers by Language