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 calculateTotal() { return quantity * unitPrice; } to the JavaScript and Total: {calculateTotal()}in the template. B. Add get total() { return quantity * unitPrice; } to the JavaScript and Total: {total} in the template. C. Add Total: {multiply{quantity, unitPrice}} in the template. D. Add Total: {quantity * unitPrice} in the template. Â Suggested Answer: A Community Answer: B This question is in Certified Platform Developer II Exam For getting Salesforce Certified Platform Developer II Disclaimers: The website is not related to, affiliated with, endorsed or authorized by Salesforce. Trademarks, certification & product names are used for reference only and belong to Salesforce. The website does not contain actual questions and answers from Salesforce's Certification Exams.
Please login or Register to submit your answer