Beginner TypeScript
Q34 / 100

How do you import a named export "add" from a module "math.ts"?

Correct! Well done.

Incorrect.

The correct answer is B) import { add } from "./math";

B

Correct Answer

import { add } from "./math";

Explanation

Named exports are imported using curly braces, e.g. "import { add } from './math';".

Progress
34/100