Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Online JavaScript Editor

class Car{ constructor(name){ this.brand = name; } make(){ return 'My card brand is ' + this.brand; } } mycar = new Car("Suzuki"); console.log(mycar.make());