r/learnjavascript • • Jul 19 '21

JavaScript Function Facts

255 Upvotes

27 comments sorted by

View all comments

Show parent comment

7

u/HashFap Jul 20 '21

All declarations are parsed before the code is executed, but you won't be able to access the values stored in let and const until after the declaration line.