Axel Rauschmayer wrote:
Insight of the day:
import
is hoisted (due toModuleDeclarationInstantiation
). That’s why the following code works.bar(); import {foo} from 'mymodule'; function bar() { // hoisted! foo(); // already initialized? }
Posts: 2
Participants: 2