From 0ea569a3805cd13b5c571c6eb33822ec23eba14e Mon Sep 17 00:00:00 2001 From: azkaZubish Date: Wed, 24 Jun 2026 18:17:34 +0530 Subject: [PATCH 1/3] Iteration 1 is done --- js/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/index.js b/js/index.js index 59e4af7..cdb1a93 100644 --- a/js/index.js +++ b/js/index.js @@ -1,4 +1,9 @@ // Iteration 1: Names and Input +let hacker1 = 'namjoon' +let hacker2 = 'bts' + +console.log(`The driver name is ${hacker1}`); +console.log(`The navigator name is ${hacker2}`); // // Iteration 2: Conditionals From 1be620ce87bb36c74035cb18ff8cbfa63493370a Mon Sep 17 00:00:00 2001 From: azkaZubish Date: Wed, 24 Jun 2026 18:22:33 +0530 Subject: [PATCH 2/3] Iteration 2 Done --- js/index.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index cdb1a93..b51bd16 100644 --- a/js/index.js +++ b/js/index.js @@ -1,11 +1,24 @@ // Iteration 1: Names and Input -let hacker1 = 'namjoon' -let hacker2 = 'bts' +let hacker1 = 'Namjoon' +let hacker2 = 'BTS' console.log(`The driver name is ${hacker1}`); console.log(`The navigator name is ${hacker2}`); // // Iteration 2: Conditionals +if(hacker1.length > hacker2.length) +{ + console.log(`The driver has the longest name, it has ${hacker1.length} characters.`) +} +else if(hacker1.length > hacker2.length) +{ + console.log(`It seems that the navigator has the longest name, it has ${hacker2.length} characters.`) +} +else +{ + console.log(`Wow, you both have equally long names, ${hacker1.length} characters!`) +} + // Iteration 3: Loops From f6092131432be92459bf5577868e1e9d5c690857 Mon Sep 17 00:00:00 2001 From: azkaZubish Date: Wed, 24 Jun 2026 18:51:14 +0530 Subject: [PATCH 3/3] Iteration 3 Done --- js/index.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index b51bd16..be29f0f 100644 --- a/js/index.js +++ b/js/index.js @@ -1,11 +1,11 @@ // Iteration 1: Names and Input let hacker1 = 'Namjoon' -let hacker2 = 'BTS' +let hacker2 = 'seokjin' console.log(`The driver name is ${hacker1}`); console.log(`The navigator name is ${hacker2}`); // -// Iteration 2: Conditionals +// Iteration 2: Conditional if(hacker1.length > hacker2.length) { @@ -22,3 +22,10 @@ else // Iteration 3: Loops + +let hacker1Upper = hacker1.toUpperCase().split("").join(" "); +console.log(hacker1Upper) + +let hacker2Reverse = hacker2.split("").reverse().join(""); +console.log(hacker2Reverse) +