Skip to content

Paris - Jules & Jules - #294

Closed
julesbadin wants to merge 2 commits into
ironhack-labs:masterfrom
julesbadin:master
Closed

Paris - Jules & Jules#294
julesbadin wants to merge 2 commits into
ironhack-labs:masterfrom
julesbadin:master

Conversation

@julesbadin

Copy link
Copy Markdown

No description provided.

//Names and Input

var hacker1 = "Jules";
var hacker2 = promt("What's your name ?");

@ta-web-paris ta-web-paris Jan 8, 2019

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

be careful- you mis-spelt prompt here



var words = latin.split(' ');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You didn't need to plus one here. But I really like how your way of counting the number of words

console.log(nameReverse);


if (hacker1[0] < hacker2[0]) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

for this to work properly, you need to make it case insensitive. this is because you're really comparing the character codes which is different for uppercase and lowercase letters

@ta-web-paris

Copy link
Copy Markdown

Good job!! What you've done is good, and it's cool how you used a regex - they can get super complicated 🙌

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