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
Sur cette page du site, vous pouvez voir la vidéo en ligne Javascript ES6 Arrow Function With Object Creation Gotchas durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Lift And Shift Dev 06 janvier 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 126 fois et il a aimé 4 téléspectateurs. Bon visionnage!