Slide 14
Slide 14 text
JavaScript
function takeMyMoney(amount, inCurrency){
console.log(inCurrency + amount);
}
!
function takeMyMoney(amount, inCurrency, withAReceipt){
console.log(withAReceipt);
return inCurrency + amount;
}
!
takeMyMoney(42, "£"); // £42
takeMyMoney(42, "£", true); // £42