ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 124 - Certified JavaScript Developer I discussion

Report
Export

A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:

Import printPrice from '/path/PricePrettyPrint.js';

Based on the code, what must be true about the printPrice function of the PricePrettyPrint module for this import to work ?

A.
printPrice must be be a named export
Answers
A.
printPrice must be be a named export
B.
printPrice must be an all export
Answers
B.
printPrice must be an all export
C.
printPrice must be the default export
Answers
C.
printPrice must be the default export
D.
printPrice must be a multi exportc
Answers
D.
printPrice must be a multi exportc
Suggested answer: C
asked 23/09/2024
Mariusz Lewandowski
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first