ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 146 - Certified JavaScript Developer I discussion

Report
Export

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 ();
Answers
A.
import * from '/path/universalContainersLib.js'; universalContainersLib. foo ()7 universalContainersLib.bar ();
B.
import {foo,bar} from '/path/universalCcontainersLib.js'; foo(): bar()?
Answers
B.
import {foo,bar} from '/path/universalCcontainersLib.js'; foo(): bar()?
C.
import all from '/path/universalContainersLib.js'; universalContainersLib.foo(); universalContainersLib.bar ();
Answers
C.
import all from '/path/universalContainersLib.js'; universalContainersLib.foo(); universalContainersLib.bar ();
D.
import * as lib from '/path/universalContainersLib.js'; lib.foo(); lib. bar ();
Answers
D.
import * as lib from '/path/universalContainersLib.js'; lib.foo(); lib. bar ();
Suggested answer: D
asked 23/09/2024
Sergio Zozulenko
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first