ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 42 - Certified JavaScript Developer I discussion

Report
Export

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

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

A.
import * ad lib from '/path/universalContainersLib.js'; lib.foo(); lib.bar();
Answers
A.
import * ad lib from '/path/universalContainersLib.js'; lib.foo(); lib.bar();
B.
import (foo, bar) from '/path/universalContainersLib.js'; foo(); bar();
Answers
B.
import (foo, bar) from '/path/universalContainersLib.js'; foo(); bar();
C.
import all from '/path/universalContaineraLib.js'; universalContainersLib.foo(); universalContainersLib.bar();
Answers
C.
import all from '/path/universalContaineraLib.js'; universalContainersLib.foo(); universalContainersLib.bar();
D.
import * from '/path/universalContaineraLib.js'; universalContainersLib.foo(); universalContainersLib.bar();
Answers
D.
import * from '/path/universalContaineraLib.js'; universalContainersLib.foo(); universalContainersLib.bar();
Suggested answer: A
asked 23/09/2024
Luca Bombelli
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first