From 95a700f0787f71e3c96a6efad81e1859896e5767 Mon Sep 17 00:00:00 2001 From: ABDIKARIIN ABDULE Date: Wed, 12 Nov 2025 20:14:39 +0000 Subject: [PATCH 1/2] TIJAABO --- challenges.js | 3 ++- index.html | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/challenges.js b/challenges.js index 9813c94..7b36cdc 100644 --- a/challenges.js +++ b/challenges.js @@ -18,7 +18,8 @@ Output: "The late fee is $2.50." // ✍️ ✍️ ✍️ ✍️ Write the function here ✍️ ✍️ ✍️ ✍️ - +const tijaabo = "Wanaag" +console.log(tijaabo) // Extra Task: // - Convert the function into a function expression. diff --git a/index.html b/index.html index a56d8b1..82c2fc5 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,9 @@

Check the console log for changes

+ + + From 3a0d182941583e86f8c3d2a08005dbff466d6a95 Mon Sep 17 00:00:00 2001 From: ABDIKARIIN ABDULE Date: Fri, 14 Nov 2025 19:58:55 +0000 Subject: [PATCH 2/2] this my homework --- challenges.js | 63 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 54 insertions(+), 9 deletions(-) diff --git a/challenges.js b/challenges.js index 7b36cdc..8251e98 100644 --- a/challenges.js +++ b/challenges.js @@ -18,8 +18,21 @@ Output: "The late fee is $2.50." // ✍️ ✍️ ✍️ ✍️ Write the function here ✍️ ✍️ ✍️ ✍️ -const tijaabo = "Wanaag" -console.log(tijaabo) +// Function to calculate late fee +function calculateLateFee() { + + const overdueDays = prompt("Enter the number of overdue days:"); + + const amount = 0.25 + + const total = overdueDays * amount + + console.log(`The late fee is $${total}.`); +} + +// Functionka- Is Comment - just make active to check - Delete {//} +//calculateLateFee(); +// Closed - THE END. // Extra Task: // - Convert the function into a function expression. @@ -50,8 +63,31 @@ Output: "Red: You are passionate and bold." // Extra Task: // - Rewrite the function using an arrow function. - - +function findColorMeaning(color) { + + if (color === "Blue"){ + console.log ("Blue: You love Calm and peace"); + + } else if (color === "Red") { + console.log ("Red: You are passionate and bold."); + + } else if (color === "Green") { + console.log ("Green: You are connected to nature."); + + } else if (color === "Yellow"){ + console.log ("Yellow: You radiate happiness and energy."); + + + } else { + console.log ("That's a unique choice!"); + } + + +} +// const userColor = prompt("What is Your Fevorite Color ?"); +//Important Read Me ----> To active the prompt function just delete comment {//} +//findColorMeaning(userColor); +//End Here ----- /* Task 3 : Lawyer's Case Log 🚀🚀🚀🚀 @@ -68,9 +104,10 @@ Output: "Case #12345: John Doe's case is now logged." */ // ✍️ ✍️ ✍️ ✍️ Write the function here ✍️ ✍️ ✍️ ✍️ - - - +function logCase (clientName, caseNumber) { + console.log (`Case #${caseNumber}: ${clientName}'s case is now logged.`); +} +logCase("ABDIKARIIN", 123456); // Extra Task: // - Rewrite the function as an arrow function. @@ -94,8 +131,16 @@ Output: "Amina is present." */ // ✍️ ✍️ ✍️ ✍️ Write the function here ✍️ ✍️ ✍️ ✍️ - - +function markAttendance (studentName, isPresent){ + if (isPresent === true){ + console.log(`${studentName} is present.`); + }else { + console.log(`${studentName} is absent.`); + } +} + +markAttendance("Amina", true); +markAttendance("ABDIKARIIN", false); // Extra Task: // - Convert the function into a function expression.