About this exam
CRT-600 is the Salesforce exam Certification Preparation for Salesforce JavaScript Developer I.
Paid practice material for this exam is not available yet, but you can try its free sample questions.
- Exam code
- CRT-600
- Vendor
- Salesforce
- Practice questions
- Not available yet
- Free sample questions
- 5
- Question bank last updated
- Not available yet
Try 2 sample questions
Taken from the free sample set for CRT-600.
Question 1
Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
The developer needs to insert a code statement in the location shown. The code
statement has these requirements:
1. Does require an import
2. Logs an error when the boolean statement evaluates to false
3. Works in both the browser and Node.js
Which meet the requirements?
- AOption A:
assert (number % 2 === 0);
- BOption B:
console.error(number % 2 === 0);
- COption C:
console.debug(number % 2 === 0);
- DOption D:
console.assert(number % 2 === 0);
Show answer and explanation
Correct answer: B
Question 2
Refer to the code below:
01 let car1 = new promise((_, reject) =>
02 setTimeout(reject, 2000, “Car 1 crashed in”));
03 let car2 = new Promise(resolve => setTimeout(resolve, 1500, “Car 2
completed”));
04 let car3 = new Promise(resolve => setTimeout (resolve, 3000, “Car 3
Completed”));
05 Promise.race([car1, car2, car3])
06 .then(value => (
07 let result = $(value) the race. `;
08 ))
09 .catch( arr => (
10 console.log(“Race is cancelled.”, err);
11 ));
What is the value of result when Promise.race executes?
- AOption A:
Car 3 completed the race.
- BOption B:
Car 1 crashed in the race.
- COption C:
Car 2 completed the race.
- DOption D:
Race is cancelled.
Show answer and explanation
Correct answer: C
See all 5 free sample questions