Readplace

:hammer: Change sum to multiplication · FagnerMartinsBrack/jack-the-moneylender@f5202a4

GitHub 1 min read
View original
  • current

This article is too short to summarise.

Commit f5202a4

committed

🔨 Change sum to multiplication

1 file changed

Lines changed: 3 additions & 3 deletions

Lines changed: 3 additions & 3 deletions

Original file line numberDiff line numberDiff line change

@@ -8,13 +8,13 @@

88
99

const interestToPayForDollars = (loanAmount) => {

1010

if (loanAmount === 2001) {

11-

return 0.09;

11+

return 0.09 * 1;

1212

}

1313

if (loanAmount === 2002) {

14-

return 0.09 + 0.09;

14+

return 0.09 * 2;

1515

}

1616

if (loanAmount === 2003) {

17-

return 0.09 + 0.09 + 0.09;

17+

return 0.09 * 3;

1818

}

1919

return 0;

2020

};

0 commit comments

Comments

 (0)