Pls what is the difference between arrow function and regular function ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Pls what is the difference between arrow function and regular function ??

25th May 2020, 6:47 PM
Shola Micheal
Shola Micheal - avatar
3 Answers
+ 1
the main difference is that “function” supports procedural and object oriented programming, so you can use the “this” keyword with it, whereas arrow functions is geared towards functional programming, so doesnt support “this” keyword.
25th May 2020, 8:12 PM
Logomonic Learning
Logomonic Learning - avatar
0
Thanks
25th May 2020, 8:49 PM
Shola Micheal
Shola Micheal - avatar