Exam JavaScript-Developer-I Topic 7 Question 159 Discussion

Actual exam question for Salesforce's JavaScript-Developer-I exam
Question #: 159
Topic #: 7
A class was written to represent items for purchase in an online store, and a second class representing items that are on sale at a discounted price. The constructor sets the name to the first value passed in. The pseudocode is below:

There is a new requirement for a developer to implement a description method that will retrun a brief description for item and saleitem.

What is the out when executing the code above?

Suggested Answer: D Vote an answer

by Harley at Oct 27, 2023, 10:35 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10