+ 3
Why are class declarations not hoisted in javascript while function and variable declarations are?
Wouldn't it have been convenient to add this feature for classes too to be consistent?
1 Odpowiedź
+ 2
I think this post summarizes it pretty well:)
https://stackoverflow.com/questions/35537619/why-are-es6-classes-not-hoisted#35537963