Complete the code to import the default export from the module.
import [1] from './module.js'; console.log(value);
To import the default export, use import value from './module.js';.
Complete the code to import a named export called 'value' from the module.
import [1] from './module.js'; console.log(value);
Named exports must be imported using curly braces, like import {value} from './module.js';.
Fix the error in the import statement to import all exports as an object named 'utils'.
import [1] from './utils.js'; console.log(utils.doSomething());
To import all exports as an object, use import * as utils from './utils.js';.
Fill both blanks to import 'value' and 'count' named exports from the module.
import [1] from './data.js'; import [2] from './data.js'; console.log(value, count);
Multiple named imports must be inside one pair of curly braces separated by commas, but here blanks are separate so each blank is one named import with braces.
Fill all three blanks to import the default export as 'main', and named exports 'value' and 'count' from the module.
import [1], [2] from './module.js'; console.log(main, value, count);
When importing default and named exports together, default import comes first, then named imports inside curly braces.