00:00

QUESTION 21

The developer has a function that prints “Hello” to an input name. To test this, thedeveloper created a function that returns “World”. However the following snippet does not print “ Hello World”.
JavaScript-Developer-I dumps exhibit
What can the developer do to change the code to print “Hello World” ?

Correct Answer: B

QUESTION 22

A developer wants to create an object from a function in the browser using the code below:
Function Monster() { this.name =‘hello’ }; Const z = Monster();
What happens due to lack of the new keyword on line 02?

Correct Answer: C

QUESTION 23

Refer to the code below:
JavaScript-Developer-I dumps exhibit
Why does the function bar have access to variable a ?

Correct Answer: C

QUESTION 24

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?

Correct Answer: D

QUESTION 25

Which three statements are true about promises ? Choose 3 answers

Correct Answer: BCE