Salesforce Prepare for your JavaScript Developer I Certification CRT-600 Exam Practice Test

Page: 1 / 14
Total 224 questions
Question 1

Given the requirement to refactor the code above to JavaScript class format, which class

definition is correct?

A)

B)

C)

D)



Answer : A


Question 2

developer uses the code below to format a date.

After executing, what is the value of formattedDate?



Answer : B


Question 3

Which two console logs output NaN?

Choose 2 answers | |



Answer : A, B


Question 4

Refer to the code below:

Let car1 = new Promise((_ , reject) =>

setTimeout(reject, 2000, ''car 1 crashed in'' =>

Let car2 =new Promise(resolve => setTimeout(resolve, 1500, ''car 2 completed'')

Let car3 =new Promise(resolve => setTimeout(resolve, 3000, ''car 3 completed'')

Promise.race(( car1, car2, car3))

.then (value => (

Let result = '$(value) the race.';)}

.catch(arr => {

console.log(''Race is cancelled.'', err);

});

What is the value of result when Promise.race executes?



Answer : B


Question 5

Which three options show valid methods for creating a fat arrow function?

Choose 3 answers



Answer : A, E


Question 6

Refer to the code:

Given the code above, which three properties are set pet1?

Choose 3 answers:



Answer : B, C, E


Question 7

Which option is a core Node,js module?



Answer : A


Page:    1 / 14   
Total 224 questions