New Year Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: scxmas70

JavaScript-Developer-I Exam Dumps - Salesforce Certified JavaScript Developer I (SU24)

Go to page:
Question # 17

Which statement phrases successfully?

A.

JSON.parse ( ‘ foo ’ );

B.

JSON.parse ( “ foo ” );

C.

JSON.parse( “ ‘ foo ’ ” );

D.

JSON.parse(‘ “ foo ” ’);

Full Access
Question # 18

Refer to the code below:

Which replacement for the conditional statement on line 02 allows a developer to correctly determine

that a specific element, myElement on the page had been clicked?

A.

event.target.id =='myElement'

Full Access
Question # 19

Refer to the code below:

What is the value of result after line 10 executes?

A.

Error: myFather.job is not a function

B.

John Developer

C.

undefined Developer

D.

John undefined

Full Access
Question # 20

Given the following code:

is the output of line 02?

A.

''x''

B.

''null'''

C.

''object''

D.

''undefined''

Full Access
Question # 21

Universal Containers (UC) just launched a new landing page, but users complain that the website is slow. A developer found some functions any that might cause this problem. To verify this, the developer decides to execute everything and log the time each of these three suspicious functions consumes.

Which function can the developer use to obtain the time spent by every one of the three functions?

A.

console. timeLog ()

B.

console.timeStamp ()

C.

console.trace()

D.

console.getTime ()

Full Access
Question # 22

Consider type coercion, what does the following expression evaluate to?

True + 3 + ‘100’ + null

A.

104

B.

4100

C.

‘3100null’

D.

‘4100null’

Full Access
Question # 23

Refer to the code below:

let sayHello = () => {

console.log (‘Hello, world!’);

};

Which code executes sayHello once, two minutes from now?

A.

setTimeout(sayHello, 12000);

B.

setInterval(sayHello, 12000);

C.

setTimeout(sayHello(), 12000);

D.

delay(sayHello, 12000);

Full Access
Question # 24

Refer to the code below:

const addBy = ?

const addByEight =addBy(8);

const sum = addBYEight(50);

Which two functions can replace line 01 and return 58 to sum?

Choose 2 answers

A.

const addBy = function(num1){

return function(num2){

return num1 + num2;

}

B.

const addBy = function(num1){

return num1 + num2;

}

C.

const addBy = (num1) => num1 + num2 ;

D.

const addBY = (num1) => (num2) => num1 + num2;

Full Access
Go to page: