Junior JavaScript

What is the difference between regular function and arrow function?

Feature Regular Function Arrow Function

this Dynamic Lexical (inherits from parent)

Syntax function

f(){}

(a,b)=>a+b

Can be used as

constructor

✅ ❌

More from JavaScript Tutorial

All questions for this course