JS 21/100: “this” Keyword & Bind Method in JavaScript! 🚀 #shorts #interview

preview_player
Показать описание
JS 21/100: “this” Keyword & Bind Method in JavaScript! 🚀 #shorts #interview

⭐ Tags

#programming #javascript #season2
Рекомендации по теме
Комментарии
Автор

These short videos, teach me something good every day, I love this series.❤

rahulanandyt
Автор

Pls continue these videos dialy its very helpful.

PavanKumar-sqxj
Автор

keep putting this reels sir, worth looking

laxmanmistry
Автор

Got the whole point thanks for this reel

singhvivek
Автор

Const obj={
Name:"akash",
Hello: function(){
return `hello ${this.name}`
}
}
Const greetfn=obj.hello()
Clg(greetfn)

Yehan pe as you can se i have called the hello function instead of calling hello reference if you also do the same thing and save it in a variable then the code will not give any undefined value and it will work just fine

NothingbutcodeAK
Автор

How you add brackets to greetfn cause i dont see it as a function

ayushdobhal
Автор

Standalone function ka kiya matlab?
Aap ke hisab se ye obj.greet or greetFn alag alag function hain.
Nhi galat.
Ye ek hee function hai memory main.
JavaScript main kisi Function ko kis tarha call kiya ja raha ye matter kerta hai. Ke us function ki "this" binding kese hogi.
Confuse ker rahe ho aap ziyada.

abdullahsoomro
visit shbcf.ru