Closed kirandash closed 1 year ago
Please create an MCQA to be added as question number 41.
The multiple choice question should be on the topic "Named Import and Export". The difficulty level should be "Easy/Medium/Hard"
Tasks:
Explanation:
import * as obj from filename
import { sum as mySum } from filename
import sum from filename
export sum as total from filename
export { sum, diff } from filename
Sample interview question for inspiration
{}
as
Hello, I would like to do this issue.
Please create an MCQA to be added as question number 41.
The multiple choice question should be on the topic "Named Import and Export". The difficulty level should be "Easy/Medium/Hard"
Tasks:
Explanation:
import * as obj from filename
: To import all modules under one name (not a good practice).import { sum as mySum } from filename
import sum from filename
export sum as total from filename
export { sum, diff } from filename
Sample interview question for inspiration
{}
while importing a named module ?as
keyword