Thank you for giving me a good introduction to the differences between the two. I see they are mostly syntax differences. What are some situations where it would be preferred to use one over the other?
not exactly Syntax! arrow function's dynamically get context from where they are being invoked unlike arrow function which inherits context from the parent scope irrespective of from where they are invoked.
It’s like everything in code. It depends on the situation. Some situations you should still use “normal” functions. Some situations you should use arrow functions. Eg do you need a new execution context and to rebind ‘this’ or is that going to cause more problems lol
I seriously appreciate this video
Glad it helped!
Thank you for giving me a good introduction to the differences between the two. I see they are mostly syntax differences. What are some situations where it would be preferred to use one over the other?
not exactly Syntax!
arrow function's dynamically get context from where they are being invoked unlike arrow function which inherits context from the parent scope irrespective of from where they are invoked.
Nice explanation. Ty
Your welcome!
short and sweet
Don't like all the fluff everyone else puts in their videos
Thank you!
Glad it helped!
Nice one
Thank ya!
thanks boss
Anytime!
👍👍
👍
Ok Dude, but what is the exact advantage of using arrow function over normal function?
You should have mentioned it.
It’s like everything in code. It depends on the situation. Some situations you should still use “normal” functions. Some situations you should use arrow functions. Eg do you need a new execution context and to rebind ‘this’ or is that going to cause more problems lol