0

explain this why i got undefiend

function other(){ return { name:"ani" } } var t=new other(); var other1=function (){ other.call(this) } var t1=new other1(); console.log(t1.name) //why i got undefined

11th Sep 2021, 9:13 AM
Aniket Ganguly
1 ответ
+ 3
Aniket Ganguly Because you didn't return other.call(this) https://code.sololearn.com/cwQjbDox97AV/?ref=app
11th Sep 2021, 9:25 AM
A͢J
A͢J - avatar