The way JavaScript is standardized and improved is changing this year. Learning how will help you understand why transpilers have become so popular, and why we will likely be using them for a long time.
Ember itself will need to adapt to changes in JavaScript, and we will take a look at how the existing object model might be migrated to a pure EcmaScript solution.
9. The plan at the time was to finish the specification this
year and publish a snapshot of "HTML5" in 2012.
However, shortly after that we realized that the
demand for new features in HTML remained high,
and so we would have to continue maintaining HTML
and adding features to it before we could call “HTML5"
complete, and as a result we moved to a new
development model, where the technology is not
versioned and instead we just have a living document
that defines the technology as it evolves.
Ian Hickson, 2011
70. 1 class Car {
2 constructor(gearCount){
3 this.gearCount = gearCount;
4 }
5
6 toString() {
7 return `A car with: ${gearCount} gears`;
8 }
9 }
10
11 var car = new Car(3);
12 car.toString(); // A car with 3 gears
71. 1 class Vehicle {
2 constructor(gearCount){
3 this.gearCount = gearCount;
4 }
5 }
6 class Car extends Vehicle {
7 toString() {
8 return `A car with: ${this.gearCount} gears`;
9 }
10 }
11
12 var car = new Car(3);
13 car.toString(); // A car with 3 gears