You cannot assign to this
anywhere in the language.
One option is to merge into this
or other object:
constructor(human) {
Object.assign(this, human);
}
You cannot assign to this
anywhere in the language.
One option is to merge into this
or other object:
constructor(human) {
Object.assign(this, human);
}