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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.