Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Paris - Jules & Jules#294

Closed
julesbadin wants to merge 2 commits intoironhack-labs:masterironhack-labs/lab-javascript-basic-algorithms:masterfrom
julesbadin:masterjulesbadin/lab-javascript-basic-algorithms:masterCopy head branch name to clipboard
Closed

Paris - Jules & Jules#294
julesbadin wants to merge 2 commits intoironhack-labs:masterironhack-labs/lab-javascript-basic-algorithms:masterfrom
julesbadin:masterjulesbadin/lab-javascript-basic-algorithms:masterCopy head branch name to clipboard

Conversation

@julesbadin
Copy link

No description provided.

//Names and Input

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

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

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(' ');

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]) {

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

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.