Es6 Class declaration vs named vs unnamed class expression
I'm on my limit right now, I can't process information in my head. Can someone explain me the difference, pro and cons of these 3 class? In a simple word of course. I already searched them. It's just I'm having trouble in es6 tutorial here in SoloLearn (a lot of learners too). //------------Class Declaration------------ class Vihicle { constructor(height, width) { this.height = height; this.width = width; } }; //------------Named Class Expression------------- const Truck = class Vihicle { constructor(height, width) { this.height = height; this.width = width; } }; //------------Unamed Class Expression-------------- const Van = class { constructor(height, width) { this.height = height; this.width = width; } }