0
why do I get referenceError; can't access lexical declaration `foo' before initialization?
I called a function before declaring it with arrow function and got the referenceError. but when I later changed arrow function and use function keyword it works.
1 Odpowiedź
0
It has a very easy description,but i could not tell you since my english is not good. You can check it in google, it problem of scoping idea!!!!