Hey Just wanted to say I found your channel and you explain things really well and easy to understand, Thanks, Like & subs :)
@DipeshMalvia4 жыл бұрын
Awesome, thank you!
@joshuagiovanna46523 жыл бұрын
THIS is very helpful.
@DipeshMalvia3 жыл бұрын
Thanks!
@mattjaworski35863 жыл бұрын
little comment about object method -- if you use arrow function convention ()=> again this will show windows object (apparently all arrow function doing this no matter where they are)
@DipeshMalvia3 жыл бұрын
Hey Matt, you are absolutely right that one use case of arrow function is to stabilize the context of "this". I covered that part in detailed in my Arrow Function video where I show when to use and when not to use arrow function. Checkout that video😊
@mattjaworski35863 жыл бұрын
@@DipeshMalvia thanks Dipesh. I think reading yehudakatz.com/2011/08/11/understanding-javascript-function-invocation-and-this/ would be also helpful - especially final conclusion could ease the pain.
@jay8118 Жыл бұрын
Missed one important point...Arrow function doesn't have its own context. It behaves differently than normal function.
@praffulsolanki1564 жыл бұрын
Helpful 🙌🏽
@DipeshMalvia4 жыл бұрын
Glad it was helpful!
@naushadansari7083 жыл бұрын
but with help of "fat arrow function" we can bind the context of "this" inside an object
@DipeshMalvia3 жыл бұрын
Hi Naushad, you are absolutely correct we can set "this" context using "fat arrow function" as it uses lexical scope. I covered this part in my "Arrow Function".
@scarasect51614 жыл бұрын
Ty
@DipeshMalvia4 жыл бұрын
Welcome Scarasect
@amitawsm17404 жыл бұрын
👍
@DipeshMalvia4 жыл бұрын
Thanks!
@anjanasanthosh10405 ай бұрын
There is a mistake in this explanation. The callee function in the case of person.checkThis() is checkThis() and the caller is the 'person ' object.