New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam CRT-600 Topic 2 Question 37 Discussion

Actual exam question for Salesforce's CRT-600 exam
Question #: 37
Topic #: 2
[All CRT-600 Questions]

Refer to the following code:

class Vehicle{constructor(plate){this.plate = plate;}}class Truck extends Vehicle{constructor(plate, weight){//Missing codethis.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 Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77