Salesforce CRT-600 Exam Questions
Prepare for your JavaScript Developer I Certification Exam (Page 8 )

Updated On: 21-Feb-2026

A team that works on a big project uses npm to deal with projects dependencies. A developer added a dependency does not get downloaded when they execute npm install.
Which two reasons could be possible explanations for this? Choose 2 answers

  1. The developer missed the option --add when adding the dependency.
  2. The developer added the dependency as a dev dependency, and NODE_ENV
    Is set to production.
  3. The developer missed the option --save when adding the dependency.
  4. The developer added the dependency as a dev dependency, and NODE_ENV is set to production.

Answer(s): B,C,D



A developer is asked to fix some bugs reported by users. To do that, the developer adds a breakpoint for debugging.
Function Car (maxSpeed, color){
This.maxspeed =masSpeed;
This.color = color;
Let carSpeed = document.getElementById(` CarSpeed');
Debugger;
Let fourWheels =new Car (carSpeed.value, `red');
When the code execution stops at the breakpoint on line 06, which two types of information are available in the browser console ?
Choose 2 answers:

  1. The values of the carSpeed and fourWheels variables
  2. A variable displaying the number of instances created for the Car Object.
  3. The style, event listeners and other attributes applied to the carSpeed DOM element
  4. The information stored in the window.localStorage property

Answer(s): C,D



At Universal Containers, every team has its own way of copying JavaScript objects. The code

Snippet shows an implementation from one team:
Function Person() {
this.firstName = "John";
this.lastName = `Doe';
This.name =() => (
console.log(`Hello $(this.firstName) $(this.firstName)'); )}
Const john = new Person ();
Const dan = JSON.parse(JSON.stringify(john));
dan.firstName ='Dan';
dan.name();
What is the Output of the code execution?

  1. Hello Dan Doe
  2. Hello John DOe
  3. TypeError: dan.name is not a function
  4. TypeError: Assignment to constant variable.

Answer(s): C



Refer to the code below:
Let textValue = '1984';
Which code assignment shows a correct way to convert this string to an integer?

  1. let numberValue = Number(textValue);
  2. Let numberValue = (Number)textValue;
  3. Let numberValue = textValue.toInteger();
  4. Let numberValue = Integer(textValue);

Answer(s): A



A developer writers the code below to calculate the factorial of a given number.
Function factorial(number) {
Return number + factorial(number -1);
}
factorial(3);
What is the result of executing line 04?

  1. 0
  2. 6
  3. -Infinity
  4. RuntimeError

Answer(s): D






Post your Comments and Discuss Salesforce CRT-600 exam dumps with other Community members:

Join the CRT-600 Discussion