Complete the code to export a function named greet.
export function [1]() { console.log('Hello!'); }
The function name to export is greet as required.
Complete the code to import the greet function from 'greetings.js'.
import { [1] } from './greetings.js';
The function greet is imported as it was exported from 'greetings.js'.
Fix the error in the code to correctly export a constant named PI.
const PI = 3.14; [1] PI;
Use export to export the constant in ES modules.
Fill both blanks to create a module that exports a function and imports another.
import { [1] } from './math.js'; export function [2]() { return [1](5, 3); }
The function add is imported and used inside the exported subtract function as per the code logic.
Fill all three blanks to create a module exporting a default function and importing named ones.
import { [1], [2] } from './utils.js'; export default function [3]() { [1](); [2](); }
The functions logInfo and logError are imported and called inside the default exported function handleLogs.
