Hello,
Could you please explain how the prototype inheritance works between classes and constructor functions. In case of an inheritance from a construction function to a class(same as between classes "Class extends function", but I could find out how to apply prototype inheritance to a construction function from a class as I tried the Class.call(this ,properties...) and I got an error of "Class constructor *** cannot be invoked without 'new' at new ***". still we could use "Function.prototype = Object.create(Class.prototype);" but that will inherence methods and not the properties.
Thanks,
Owner Name | jonasschmedtmann |
Repo Name | complete-javascript-course |
Full Name | jonasschmedtmann/complete-javascript-course |
Language | JavaScript |
Created Date | 2018-06-14 |
Updated Date | 2023-03-29 |
Star Count | 12137 |
Watcher Count | 850 |
Fork Count | 14403 |
Issue Count | 153 |
Issue Title | Created Date | Updated Date |
---|