Skip to main content

CRT-600 Certification Preparation for Salesforce JavaScript Developer I

  • Salesforce
  • 5 free sample questions

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?

  1. Option A:
    assert (number % 2 === 0);
  2. Option B:
    console.error(number % 2 === 0);
  3. Option C:
    console.debug(number % 2 === 0);
  4. Option 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?

  1. Option A:
    Car 3 completed the race.
  2. Option B:
    Car 1 crashed in the race.
  3. Option C:
    Car 2 completed the race.
  4. Option D:
    Race is cancelled.
Show answer and explanation

Correct answer: C

See all 5 free sample questions