Free Salesforce CRT-600 Exam Actual Questions

The questions for CRT-600 were last updated On Nov 19, 2024

Question No. 1

A developer implements and calls the following code when an application state change occurs:

Const onStateChange =innerPageState) => {

window.history.pushState(newPageState, ' ', null);

}

If the back button is clicked after this method is executed, what can a developer expect?

Show Answer Hide Answer
Correct Answer: B

Question No. 2

Refer to the following code:

class Vehicle{

constructor(plate){

this.plate = plate;

}

}

class Truck extends Vehicle{

constructor(plate, weight){

//Missing code

this.weight = weight;

}

displayWeight(){

console.log(`The truck ${this.plate} has a weight of ${this.weight}lb.`);

}

}let myTruck = new Truck('123Ab',5000);

myTruck.displayWeight();

Which statement should be added to missing code for the code to display 'The truck 123AB has a

weight of 5000lb.

Show Answer Hide Answer
Correct Answer: A

Question No. 3

Refer to code below:

function Person() {

this.firstName = 'John';

}

Person.prototype ={

Job: x => 'Developer'

};

const myFather = new Person();

const result =myFather.firstName + ' ' + myFather.job();

What is the value of the result after line 10 executes?

Show Answer Hide Answer
Correct Answer: D

Question No. 4

Refer to the following object:

const cat ={

firstName: 'Fancy',

lastName: ' Whiskers',

Get fullName() {

return this.firstName + ' ' + this.lastName;

}

};

How can a developer access the fullName property for cat?

Show Answer Hide Answer
Correct Answer: A

Question No. 5

GIven a value, which three options can a developer use to detect if the value is NaN?

Choose 3 answers !

Show Answer Hide Answer
Correct Answer: A, E