Skip to content

JS basic algorithms#3677

Open
vRUZIx wants to merge 1 commit into
ironhack-labs:masterfrom
vRUZIx:master
Open

JS basic algorithms#3677
vRUZIx wants to merge 1 commit into
ironhack-labs:masterfrom
vRUZIx:master

Conversation

@vRUZIx
Copy link
Copy Markdown

@vRUZIx vRUZIx commented May 20, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 20, 2026 13:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds full solutions for the “Iteration 1–3” JavaScript exercise, including the two bonus tasks (word counting and palindrome checking).

Changes:

  • Introduces driver/navigator names and prints them.
  • Adds conditional logic for comparing name lengths and loop-based string transformations.
  • Implements bonus word counting (including counting “et”) and palindrome detection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.js
Comment on lines +18 to +22
else if (h1=h2){
console.log("It seems that the navigator has the longest name, it has " +h2 +" characters.");
}
else {
console.log("Wow, you both have equally long names, XX characters!");
Comment thread index.js
@@ -1,7 +1,108 @@
// Iteration 1: Names and Input

let hacker1 ="Ruzi";
Comment thread index.js
Comment on lines +7 to +9
let hacker2 ="Neymar";

console.log("The navigator's name is " + hacker2 );
Comment thread index.js
let currentWord = "";
for (let i = 0; i <= longText.length; i++) {
let char = longText[i];
if (char >= 'a' && char <= 'z' || char >= 'A' && char <= 'Z') {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants