Skip to content

Instantly share code, notes, and snippets.

@aheld
Created April 22, 2020 18:06
Show Gist options
  • Save aheld/10bbbdd44b60eed92f123cb357c620af to your computer and use it in GitHub Desktop.
Save aheld/10bbbdd44b60eed92f123cb357c620af to your computer and use it in GitHub Desktop.
const assert = require('assert')
function makeDeposits (deposits) {
return 0
}
const deposits = [0, 100, 100, 100]
const expected = 300
const balance = makeDeposits(deposits)
assert.strictEqual(balance, expected)
console.log("makeDeposits( " + JSON.stringify(deposits) + ") = " + expected)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment