Understanding ‘prototypes’ and ‘class’

I mean, it isn’t necessarily good practice to extend the prototype of of something like objects anyways, so there wouldn’t be a reason to worry about Object.assign most of the time, I would think. In the case of messing with prototype, you’d be more apt to write your own classes and extend with the `extends` keyword.

Author: admin

Leave a Reply

Your email address will not be published.