From 3e4fa9f2a9dae14e6dc90da89bba1b30e6e8b3c7 Mon Sep 17 00:00:00 2001 From: ballerino Date: Sat, 12 Sep 2015 16:30:50 -0400 Subject: [PATCH 1/2] changed the tip --- tip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } From 0ae8a5c5588fd2e41addabaa43e9f6fc9454479b Mon Sep 17 00:00:00 2001 From: ballerino Date: Sat, 12 Sep 2015 16:34:05 -0400 Subject: [PATCH 2/2] changed index --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); };