0

Why am I getting undefined if I remove 'this' ?

Inside Snake constructor, I have called Animal constructor. But if I remove the this keyword I am getting undefined in the output. WHY ?? https://code.sololearn.com/c3xDtSPIndz0/?ref=app

8th Jan 2023, 6:21 PM
Levi
Levi - avatar
1 Answer
8th Jan 2023, 9:23 PM
BroFar
BroFar - avatar