You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should both export foo before processing the imported modules. Functions declaration bindings are initialized with their values before evaluating their imported modules.
Activity
loganfsmyth commentedon Apr 20, 2017
Looks like they are both a little wrong.
and
should both export
foobefore processing the imported modules. Functions declaration bindings are initialized with their values before evaluating their imported modules.lukescott commentedon Apr 20, 2017
Is
varhoisted the same way asfunction? So does this also apply?I get
undefinedfor this case as well.loganfsmyth commentedon Apr 20, 2017
For var it would be undefined and for let/const it would be a tdz error
change some magic numbers to hoist exports
change some magic numbers to hoist exports