From 322dfaee419cc4fad40512211716b589c63b6f43 Mon Sep 17 00:00:00 2001 From: Lukonianlogic <130474842+lukonianlogic@users.noreply.github.com> Date: Fri, 1 Sep 2023 16:00:34 -0600 Subject: [PATCH] Update yourPlayground.js --- yourPlayground.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yourPlayground.js b/yourPlayground.js index e69de29..d27da05 100644 --- a/yourPlayground.js +++ b/yourPlayground.js @@ -0,0 +1,9 @@ +food = Number(prompt('how much was the food?')) +tipPercentage = Number(prompt('tip %?' / 100)) +tipAmount = (food * tipPercentage); +total = food + (food*tipPercentage); + +console.log("food: ", food); +console.log("tip percentage: ", tipPercentage); +console.log("tip amount: ", tipAmount); +console.log("total: ", total);