"There is no need to use the defer attribute when loading a module script; modules are deferred automatically."
"You will only be able to access imported features in the script they are imported into, and you won't be able to access them from the JavaScript console, for example."
"JavaScript classes, introduced in ECMAScript 2015, are primarily syntactical sugar over JavaScript's existing prototype-based inheritance. The class syntax does not introduce a new object-oriented inheritance model to JavaScript."
let Rectangle = class {
constructor(height, width) {
this.height = height;
this.width = width;
}
};
Modules
defer
attribute when loading a module script; modules are deferred automatically."Classes