diff --git a/index.html b/index.html index 3ec9763..ed85406 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ window.onload = function() { var number, tip, total; - alert("Let's calculate your 20% tip."); + alert("Let's calculate your 25% tip."); baseAmount = parseFloat(prompt("How much is the bill?")); @@ -17,7 +17,7 @@ total = calculateTotal(baseAmount, tip); - alert("Your 20% tip is: " + tip); + alert("Your 25% tip is: " + tip); alert("Your total is: " + total); }; diff --git a/tip.js b/tip.js index 9150333..4203dd4 100644 --- a/tip.js +++ b/tip.js @@ -1,6 +1,6 @@ "use strict"; function calculateTip(baseAmount) { - return (.2 * baseAmount); + return (.25 * baseAmount); }