Hello! There will be no code provided because I just want to ask and understand something. I am stuck on this part of the project certification where it requires:
When
price
is less than the value in the#cash
element, total cash in drawercid
is greater than the change due, individual denomination amounts allows for returning change due, and the#purchase-btn
element is clicked, the value in the#change-due
element should be"Status: OPEN"
with required change due in coins and bills sorted in highest to lowest order.
Especially in this part:
individual denomination amounts allows for returning change due
I am not pure English, I speak English as my second language. but to my understanding. this, as a whole, is about the sufficient cash in the drawer (cid) to see if we can change the customer’s cash used for the purchase, correct?
that would mean, I have to create a function or something responsible for the quantity of each cash in the drawer and then validate that as a condition?