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

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
B . printPrice must be an all export
C . printPrice must be the default export
D . printPrice must be a multi exportc

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments