JAVASCRIPT-DEVELOPER-I Web TestEngine demo

Exit VCEDump JAVASCRIPT-DEVELOPER-I Salesforce Certified JavaScript Developer (JS-Dev-101)
Question 33 of 34
0% complete
Q33 Single choice

Cloud Kicks has a class to represent items for sale in an online store, as shown below:

Class Item{

constructor (name, price){

this.name = name;

this.price = price;

}

formattedPrice(){

return `s' + String(this.price);}}

A new business requirement comes in that requests a ClothingItem class that should have all of the properties and methods of the Item class but will also have properties that are specific to clothes.

Which line of code properly declares the clothingItem class such that it inherits from Item?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in