Skip to content

Commit e93f429

Browse files
committed
rename outstanding to result in calculateOutstanding
1 parent dcb2a3a commit e93f429

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ function printBanner() {
2626
}
2727

2828
function calculateOutstanding(invoice) {
29-
let outstanding = 0;
29+
let result = 0;
3030

3131
for (const o of invoice.orders) {
32-
outstanding += o.amount;
32+
result += o.amount;
3333
}
3434

35-
return outstanding;
35+
return result;
3636
}
3737

3838
module.exports = { printOwing };

0 commit comments

Comments
 (0)