Pls what is the difference between arrow function and regular function ?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

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

25th May 2020, 6:47 PM
Shola Micheal
Shola Micheal - avatar
3 Respostas
+ 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