Free CRT-600 Exam Braindumps (page: 28)

Page 27 of 57

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?

  1. cat.fullName
  2. cat.fullName()
  3. cat.get.fullName
  4. cat.function.fullName()

Answer(s): A



Refer to 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 line 09 for the code to display `The truck 123AB has a weight of 5000lb.'?

  1. Super.plate =plate;
  2. super(plate);
  3. This.plate =plate;
  4. Vehicle.plate = plate;

Answer(s): B



Which option is a core Node,js module?

  1. Path
  2. Ios
  3. Memory
  4. locate

Answer(s): A



Refer to the code snippet below:
Let array = [1, 2, 3, 4, 4, 5, 4, 4];
For (let i =0; i < array.length; i++){
if (array[i] === 4) {
array.splice(i, 1);
}
}
What is the value of the array after the code executes?

  1. [1, 2, 3, 4, 5, 4, 4]
  2. [1, 2, 3, 4, 4, 5, 4]
  3. [1, 2, 3, 4, 5, 4]
  4. [1, 2, 3, 5]

Answer(s): C






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

CRT-600 Discussions & Posts