As for the example of the constructor functions, they are new to ES6, and do not apply (in the context of a
class) to <ES5.
Hope this clarifies.
Constructor functions were used before the
varkeyword disappears completely
- arrow functions are introduced shortly after regular functions
- spread operator becomes part of the section about arrays
For example: this topic :
Object Oriented Programming: Use a Constructor to Create Objects comes after the ES6 module, while the ES6 module talks about
Function Constructor before, so the beginner may get blocked and quit.
Thanks for that. That is a decent example, and I now see what you are getting at.
happy birthday by the way
Thank you, bedward