Message from JavaScript discussions

April 2017

— Make change

— 

Write a little store with a cart object, and add/remove methods for the cart, then finally a checkout method with a money parameter

— You will have to calculate change in denominations of your currency

— Ie for US nickels, dimes etc

— Make an example of output

— Like you pay 10€

— And the object is 5

— 5€*

— So the change is 5€

— Yes exactly, then account for lower denominations

— Which is 5,36 dollat

— Like a complete cash system