Created
October 13, 2010 13:03
-
-
Save mklabs/623991 to your computer and use it in GitHub Desktop.
This file contains 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
// 10: a user enters their desired tip into a text box; the baseTotal, tax, | |
// and fee values are provided by the application. what are some potential | |
// issues with the following function for calculating the total? | |
function calculateTotal(baseTotal, tip, tax, fee) { | |
return baseTotal + tip + tax + fee; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment