Skip to content

Instantly share code, notes, and snippets.

View gatezh's full-sized avatar

Sergii Gatezh gatezh

View GitHub Profile
@gatezh
gatezh / Exact Change.js
Created January 30, 2017 23:51
Free Code Camp > Advanced Algorithm Scripting > Exact Change
function checkCashRegister(price, cash, cid) {
var bills = {"PENNY": 0.01,
"NICKEL": 0.05,
"DIME": 0.10,
"QUARTER": 0.25,
"ONE": 1, "FIVE": 5,
"TEN": 10,
"TWENTY": 20,
"ONE HUNDRED": 100};