From 6bba58d90db9dbca23b1990ac4f6a921c5c91097 Mon Sep 17 00:00:00 2001 From: maxamedkaka Date: Wed, 16 Nov 2022 15:04:43 +0300 Subject: [PATCH] finish JS challenge 4 --- script.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script.js b/script.js index 702f428..ca3a409 100644 --- a/script.js +++ b/script.js @@ -1 +1,9 @@ console.log("hello"); + +function calcTip(bill){ + return 0.15 +} +let bill = 200 + + +console.log(`The bill was ${bill}, the tip was ${bill*0.15}, and the total value ${bill+bill*0.15}`)