|
|
|
|
|
by azangru
3035 days ago
|
|
Thanks :-) I've never used Object.create for inheritance (although I heard it was a favorite of Douglas Crockford's at some point).
And the syntactic sugar of es2015 classes is so appealing I never wrote constructor functions on a regular basis. What's so conceptually difficult about es2015 classes that confuses people? They always felt intuitive to me. A bit restrictive perhaps, because you don't have private methods, or instance properties, and if you want to call super in a method you have to do it before anything else, but other than that — nothing especially confusing. |
|