Example 1 — Syntax shape
What it looks like.
JavaScript
console.log("import source x from './mod.js' — module source phase");How It Works
- Shown as a documented form.
- Runtime support varies.
import source obtains a module's compiled source object without evaluating its graph (source phase imports—when supported).
console.log("import source x from './mod.js' — module source phase");What it looks like.
console.log("import source x from './mod.js' — module source phase");CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
6 people found this page helpful