How should a developer import every function from the module and then call the functions foo and bar?

A developer wants to use a module named universalContainersLib and then call functions from it.

How should a developer import every function from the module and then call the functions foo and bar?
A . import * from ‘/path/universalContainersLib.js’; universalContainersLib. foo ()7 universalContainersLib.bar ();
B. import {foo,bar} from ‘/path/universalCcontainersLib.js’;
foo():
bar()?
C. import all from ‘/path/universalContainersLib.js’; universalContainersLib.foo(); universalContainersLib.bar ();
D. import * as lib from ‘/path/universalContainersLib.js’;
lib.foo();
lib. bar ();

Answer: D

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>