Summer Certification Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Salesforce Developer JavaScript-Developer-I Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam JavaScript-Developer-I Premium Access

View all detail and faqs for the JavaScript-Developer-I exam


723 Students Passed

91% Average Score

94% Same Questions
Viewing page 2 out of 5 pages
Viewing questions 11-20 out of questions
Questions # 11:

Given the code below:

01 function GameConsole (name) {

02 this.name = name;

03 }

04

05 GameConsole.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 . . .

Options:

A.

Console16bit.prototype.load(gamename) = function() {

B.

Console16bit.prototype.load = function(gamename) {

C.

Console16bit = Object.create(GameConsole.prototype).load = function(gamename) {

D.

Console16bit.prototype.load(gamename) {

Questions # 12:

Refer to the string below.

Const str=’Salesforce’;

Which two statementsresults in the word 'Sales'?

Options:

Questions # 13:

Refer to the code below:

Question # 13

What is the output of this function when called with an empty array?

Options:

A.

Return 0

B.

Return 5

C.

Return NaN

D.

Return Infinity

Questions # 14:

Which statement accurately describes an aspect of promises?

Options:

A.

Arguments for the callback function passed to .then() are optional.

B.

In a.then() function, returning results is not necessary since callbacks will catch the result of a previous promise.

C.

.then() cannot be added after a catch.

D.

.then() manipulates and returns the original promise.

Questions # 15:

Which two console logs outputs NaN ?

Choose 2 answers

Options:

A.

console.log(10/ Number(‘5’));

B.

console.log(parseInt(‘two’));

C.

console.log(10/ ‘’five);

D.

console.log(10/0);

Questions # 16:

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?

Options:

A.

Assert

B.

Log

C.

Message

D.

Info

E.

Error

Questions # 17:

Why would a developerspecify a package.jason as a developed forge instead of a dependency ?

Options:

A.

It is required by the application in production.

B.

It is only needed for local development and testing.

C.

Other required packages depend on it for development.

D.

It should be bundled when the package is published.

Questions # 18:

Given the following code:

Question # 18

What is the output of line 02?

Options:

A.

"null"

B.

"x-

C.

"undefined" 0

D.

'object"

Questions # 19:

Refer to the code below:

Const resolveAfterMilliseconds = (ms) => Promise.resolve (

setTimeout ((=> console.log(ms), ms ));

Const aPromise = await resolveAfterMilliseconds(500);

Const bPromise = await resolveAfterMilliseconds(500);

Await aPromise, wait bPromise;

What is the result of running line 05?

Options:

A.

aPromise and bPromise run sequentially.

B.

Neither aPromise or bPromise runs.

C.

aPromise and bPromise run in parallel.

D.

Only aPromise runs.

Questions # 20:

Refer to the code below

let inArray = [[1,2],[3,4,5]];

which two statements results in the array [1,2,3,4,5]?

choose 2 answer

Options:

A.

[ ].concat(...inArray);

B.

[ ].concat.apply(inArray,[ ]);

C.

[ ].concat([...inArray])

D.

[ ].concat.apply([ ],inArray);

Viewing page 2 out of 5 pages
Viewing questions 11-20 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.