Javascript context/scope this keyword is one of the worst feature ever invented. It creates many confusions and headache for developers, even for experienced developers.
Javascript ES6 tried to mitigate it by introducing arrow function. However, there are a couple of gotchas/mistakes that I encountered during my career. I will go through these in this video.
#javascript #js #es6 #arrowfunction #arrowfunctions #gotchas
Timestamps:
0:00 - Object literal with arrow function
2:39 - Function constructor prototype method with arrow function
6:12 - Class prototype method with arrow function
On this page of the site you can watch the video online Javascript ES6 Arrow Function With Object Creation Gotchas with a duration of hours minute second in good quality, which was uploaded by the user Lift And Shift Dev 06 January 2021, share the link with friends and acquaintances, this video has already been watched 126 times on youtube and it was liked by 4 viewers. Enjoy your viewing!