C
Thanks for the detailed comment. You said both first examples are similar apart from mild syntactical differences and the purpose of this blog was to explain syntactical differences only ๐ (my bad for not coming up with a clearer title). I even mentioned above "We'll see the same functions written in different ways to learn about the differences in syntax. " And i didn't know anonymous arrow functions make it harder to debug. I also believed they are a cleaner replacement for the function declaration. Thanks for letting me know about it ๐.
ReplyArticleMay 12, 2021Syntactical differences between arrow functions and normal functions in JavaScript