Files
  • index.js
index.js
1
2
3
4
5
6
7
8
let debt = [25.93, 7.36, 60.00, 34.84, 123.05, 27.00, 21.76, 14.12, 9.79 ];

let result = debt.reduce((a,b) => a+b);

let bal = 894.14 - 300

let final = bal - result
console.log(final);
node v10.15.2 linux/amd64