DEV Community

Discussion on: ES6 Arrow Function Syntax Explained Simply

z00md profile image

About hoisiting for arrow functions: Arrow functions are not defined as function declarations. Instead they are always assigned as function expression to a variable.

Thus the regular rule for variable hoisting(let, const and var) comes into picture. It has nothing to do with arrow function syntax.