Message from JavaScript talks

April 2017

— Like this?

— 

And you can replace if(buyItem1===true) with if(buyItem1) and money = money - item1; could be money -= item1; i think

— Yes

— Ah ok

— No

— The challenge is calculating which denominations and how many to give back as change

— Because your item1 is an object

— Yes

— Money - item1

— Ah wait

— Yes

— You pay 300€