class myClass { constructor(name1) {this.name = name1} } // one waylet myClassName = class myClass2 { constructor(name1) {this.name = name1} } // another waylet myClassInstance = new myClassName(attribute1Value,attribute2Value, attribute3Value, etc.)class Dog extends Animal {constructor(name) {super(name) // Gets 'name' attribute from the parent class. Allows you to reference this.name}speak() { console.log(this.name + ' barks.'); }} let d = new Dog('Mitzie');d.speak(); // Mitzie barks.Tony: https://codepen.io/anon/pen/PLEpQr
Bill: https://codepen.io/bill-redman/pen/jJYBGb
Joe: https://codepen.io/jbalsamo99/pen/vPpxqw
David: https://codepen.io/anon/pen/WmdpKr