InterviewSolution
Saved Bookmarks
| 1. |
Give an example and explain the main difference between ES6 class and ES5 function constructors? |
|
Answer» The main DIFFERENCE between these two is when you are using INHERITANCE. It is much more COMPLICATED using inheritance in ES5, while the ES6 version is SIMPLE and easy to remember. ES6 Class:class Person { function Person(name) { |
|