Closed gotjoshua closed 5 years ago
I didn't know how to separate/revert the changes into different commits from codesandbox, therefore the changes to class-extends are in the same commit.
Also curious if that is a legit way to set defaults (via a constructor parameter deconstruction)...
Thanks ! Didn't know "Mrs" was only used for married women, English is not my first language.
Yes, you can use default values for constructor parameters as an alternative way to apply defaults. Actually, the changes in v4 regarding default assignments are mainly due to the fact that developers are more used to apply defaults this way compared to prototypal inheritance.
and default Mother to female and change Mrs to Mama as not all mothers are married.