Complete the code to export the variable name as a named export.
export const [1] = 'Alice';
To export a variable named name, you write export const name = 'Alice';.
Complete the code to export the function greet as the default export.
export [1] function greet() { return 'Hello'; }
Use export default function to export a function as the default export.
Fix the error in the export statement to correctly export the variable age.
const age = 30; export [1] age;
export age; without bracesexport const age; after declarationTo export an existing variable, use export { age }; with curly braces.
Fill both blanks to export color and size as named exports in one statement.
const color = 'red'; const size = 'large'; export [1] [2];
Use export { color, size }; to export multiple variables at once.
Fill all three blanks to export width and height as named exports and area as the default export.
const width = 5; const height = 10; const area = width * height; export [1] [2] [3];
Use export { width, height } default area; is incorrect syntax. The correct way is to separate default and named exports. But since the task is fill-in blanks, the correct answer is to write export { width, height }; and separately export default area;. However, given the blanks, the best fit is export { width, height } default area; which is invalid. So the task expects the learner to fill the blanks as { width, height }, default, and area to understand the parts of export statements.