Created
August 25, 2017 05:44
-
-
Save claudiainbytes/4ae9703246b48d2d3ef070e88fe6594f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Programming Quiz: I Got Bills (6-9) | |
| */ | |
| var bills = [50.23, 19.12, 34.01, 100.11, 12.15, 9.90, | |
| 29.11, 12.99, 10.00, 99.22, 102.20, 100.10, 6.77, 2.22]; | |
| var totals = bills.map(function(bill){ | |
| bill += (bill * (15/100)); | |
| return Number(bill.toFixed(2)); | |
| }); | |
| console.log(totals); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment