List of questions
Related questions
Question 329 - Certified Platform Developer II discussion
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?
A.
Add get total() { return quantity * unitPrice;} to the JavaScript and Total: {total} in the template.
B.
Add calculate Total() {return quantity * unitPrice;} to the javaScript and Total : {calculate Total()} in the template.
C.
Add Total: {quantity * UnitPrice} in the template.
D.
Add Total; {multiple quantit,y unitprice)} in the template.
Your answer:
0 comments
Sorted by
Leave a comment first