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 @@ + + + + + + + Document + + + hello + +