Skip to content

Miami full time web dev - #195

Closed
innayugay wants to merge 1 commit into
ironhack-labs:masterfrom
innayugay:master
Closed

Miami full time web dev#195
innayugay wants to merge 1 commit into
ironhack-labs:masterfrom
innayugay:master

Conversation

@innayugay

Copy link
Copy Markdown

No description provided.

else if(hacker2.length > hacker1.length){
console.log(`The navigator has the longest name, it has ${hacker2.length} characters`);
}
else if(hacker2.length == hacker1.length){

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could've finished with just else part since you already checked all other conditions.


console.log(hacker2.split('').reverse().join(''))

let nameOrder=hacker1.localeCompare(hacker2)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great!

console.log(`What? you both have the same name`);
}
// Lorem ipsum generator
userInput = window.prompt("Check for palindrome", "Potential palindrome");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great! Start thinking of some other approaches to check for palindrome and let me know when you do.

@sandrabosk

Copy link
Copy Markdown
Contributor

Amazing job. Keep it this way! Thank you for submitting.

@sandrabosk sandrabosk closed this Aug 14, 2018
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