Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam PDII Topic 11 Question 44 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 44
Topic #: 11
[All Platform Developer II Questions]

A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price.

What must be added to display the total?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Simon
2 years ago
Why would it be B? what is the calculate in calculate Total()? It should be A. First update the first line to import { LightningElement, api } from 'lwc'; then add in the get method. Just returning quantity * unitPrice is also incorrect. You should put the this in front to let the system know what to reference.
upvoted 1 times
...

Save Cancel