View all detail and faqs for the JavaScript-Developer-I exam
UniversalContainers recently launched its new landing page to host a crowd-funding
campaign. The page uses an external library to display some third-party ads. Once the page is
fully loaded, it creates more than 50 new HTML items placed randomly insidethe DOM, like the
one in the code below:

All the elements includes the same ad-library-item class, They are hidden by default, and they are randomly displayed while the user navigates through the page.
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 fooand bar?
Whichstatement accurately describes an aspect of promises?
Refer to code below:
Let a =’a’;
Let b;
// b = a;
console.log(b);
What is displayed when the code executes?
Given the code below:
01 function GameConsole (name) {
02 this.name = name;
03 }
04
05GameConsole.prototype.load = function(gamename) {
06 console.log( ` $(this.name) is loading agame : $(gamename) …`);
07 )
08 function Console 16 Bit (name) {
09 GameConsole.call(this, name) ;
10 }
11 Console16bit.prototype = Object.create ( GameConsole.prototype) ;
12 //insert code here
13 console.log( ` $(this.name) is loading a cartridge game :$(gamename) …`);
14 }
15 const console16bit = new Console16bit(‘ SNEGeneziz ’);
16 console16bit.load(‘ Super Nonic 3x Force ’);
What should a developer insert at line 15 to output the following message using the
method ?
> SNEGeneziz is loading a cartridgegame: Super Monic 3x Force . . .
A developer is wondering whether to use, Promise.then or Promise.catch,especially
when a Promise throws an error?
Which two promises are rejected?
Which 2 are correct?
Consider type coercion, what does the following expression evaluate to?
True + 3 + ‘100’ + null
A developer creates a genericfunction to log custom messages in the console. To do this,
the function below is implemented.
01 function logStatus(status){
02 console./*Answer goes here*/{‘Item status is: %s’, status};
03 }
Which three console logging methods allow the use of string substitution in line 02?
Which statement parses successfully?
Refer to the HTML below:
Which JavaScript statement results in changing “ Tony” to “Mr. T.”?