Valid PDII Dumps shared by EduDump.com for Helping Passing PDII Exam! EduDump.com now offer the newest PDII exam dumps, the EduDump.com PDII exam questions have been updated and answers have been corrected get the newest EduDump.com PDII dumps with Test Engine here:
Access PDII Dumps Premium Version
(163 Q&As Dumps, 35%OFF Special Discount Code: freecram)

Recent Comments (The most recent comments are at the top.)
The correct answer is B.
I think is B too
You can NOT do: Total : {calculate Total()}
You will get the error: Template expression doesn't allow CallExpressionlwc
The correct answer is B [Add get total() { return quantity * unitPrice;} to the JavaScript and Total: {total} in the template.]
Correct Answer: B
LWC allows to use get properties directly exposed into the template file.
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.js_props_getters_setters
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.