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
1 ответ
+ 3
Aniket Ganguly
Because you didn't return other.call(this)
https://code.sololearn.com/cwQjbDox97AV/?ref=app