General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
D K
Fireship
comments
Comments by "D K" (@DK-ox7ze) on "The Magic of TypeScript Decorators" video.
I didn't quite understand how 'Object.freeze(SuperClass.constructor)' prevented the class from being extended? Inheritance would internally use 'SubClass.prototype = Object.create(SuperClass.prototype)'. Object.create would internally do 'return new SuperClass.prototype'.
2