From c72e2b3a73f1eeddaa4563805145e2352c6166ad Mon Sep 17 00:00:00 2001 From: salah Date: Wed, 12 Nov 2025 18:26:19 -0500 Subject: [PATCH 1/2] assigment finished --- challenges.js | 31 +++++++++++++++++++++++++++++++ index.html | 2 +- salahgbi | 1 + 3 files changed, 33 insertions(+), 1 deletion(-) create mode 160000 salahgbi diff --git a/challenges.js b/challenges.js index 9813c94..878dd4f 100644 --- a/challenges.js +++ b/challenges.js @@ -18,6 +18,13 @@ Output: "The late fee is $2.50." // ✍️ ✍️ ✍️ ✍️ Write the function here ✍️ ✍️ ✍️ ✍️ +function calculateLateFee() { + const numberDays=prompt("how many days u made late?") + const priceDays=0.25 + const total=numberDays*priceDays + console.log(`the total price is ${total}`)} + +calculateLateFee() // Extra Task: @@ -44,6 +51,19 @@ Output: "Red: You are passionate and bold." */ // ✍️ ✍️ ✍️ ✍️ Write the function here ✍️ ✍️ ✍️ ✍️ +function findColorMeaning(){ + const color=prompt("which color do you like?") + + if(color=="green"){console.log('You are connected to nature.')} + else if(color=="blue"){console.log('You are passionate and bold.')} +else if(color=="yallow"){console.log('You radiate happiness and energy.')} +else if(color=="red"){console.log('You are passionate and bold.')} + + else {console.log('That is a unique choice!') + } +} + +findColorMeaning() @@ -67,6 +87,11 @@ Output: "Case #12345: John Doe's case is now logged." */ // ✍️ ✍️ ✍️ ✍️ Write the function here ✍️ ✍️ ✍️ ✍️ +function logCase(caseNumber,clientName){ + console.log(`his name is ${caseNumber},and his number is ${clientName}`) +} +logCase("salah",1234) + @@ -93,6 +118,12 @@ Output: "Amina is present." */ // ✍️ ✍️ ✍️ ✍️ Write the function here ✍️ ✍️ ✍️ ✍️ +// + + + + + diff --git a/index.html b/index.html index a56d8b1..f035797 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,6 @@

Check the console log for changes

- + diff --git a/salahgbi b/salahgbi new file mode 160000 index 0000000..908eccc --- /dev/null +++ b/salahgbi @@ -0,0 +1 @@ +Subproject commit 908ecccd89949d999f325c45830152d1c2094718 From 073572ec3179c4ca46810d40ff14bd3e4fd55863 Mon Sep 17 00:00:00 2001 From: salah Date: Thu, 13 Nov 2025 21:31:42 -0500 Subject: [PATCH 2/2] finished assigmeny --- README.md | Bin 1026 -> 1068 bytes challenges.js | 12 +++++++----- salahgbi | 1 - 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 160000 salahgbi diff --git a/README.md b/README.md index 03467958492941086ae7b8b1a8e8d9c88d404555..4b6bc5ad0c19f544a27de16a50bfe92c8b2c8d1e 100644 GIT binary patch delta 140 zcmZqTSi`}{J3*Y8my36z#5OQ>ULH)nw+2y@wHb97c_)W6dIHG>jLtyvF=IZE3}UhY zl6_3Zyg*f4%E}79VF4iZr