i am required to assign data of certain properties of “appState” and then invoke “uiCanInteract”
here is the instruction for it
- Continuing from where you left off in
displayCartTotal, use theformatAsMoneyfunction to setappState.billFormattedto the formatted total bill. The already assignedappState.billandappState.countryshould be handy for this task! - Set the text content of the
data-billSPAN element to the formatted bill saved inappState.billFormatted - Assign an array literal to
appState.cardDigits - Finally, call
uiCanInteractto wrap updisplayCartTotal
