From 49380d207bd3e8d0e4c539ebfead7c83c4893710 Mon Sep 17 00:00:00 2001 From: Sara-Issa <85680247+Sara-Issa@users.noreply.github.com> Date: Tue, 29 Jun 2021 19:14:07 +0300 Subject: [PATCH] done --- Part-1/challenge.js | 11 +++++++++-- Part-1/inex.html | 12 ++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 Part-1/inex.html diff --git a/Part-1/challenge.js b/Part-1/challenge.js index da0af63..dd1e8e3 100644 --- a/Part-1/challenge.js +++ b/Part-1/challenge.js @@ -1,2 +1,9 @@ -// Good Luck! You got this 💪🏾 -// Write your code here. +var payment = 195; + +if (50 >= payment && payment >= 200) { + console.log(payment * 0.15); +} else if (200 > payment) { + console.log(payment * 0.2); +} else { + console.log("no tip"); +} diff --git a/Part-1/inex.html b/Part-1/inex.html new file mode 100644 index 0000000..5e4bfac --- /dev/null +++ b/Part-1/inex.html @@ -0,0 +1,12 @@ + + +
+ + + +