Skip to content

Conversation

@MiguelIronHack
Copy link

No description provided.

} else {
console.log('What?! You both got the same name?');
}

Choose a reason for hiding this comment

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

toLowerCase() is not relevant when it comes to lexicographic order because it change the value of the letter. Cap letter and lower case as different value. Check localCompare()

@ta-web-paris
Copy link

Wp ! its great ! methods or for loops, its your choice !

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.

3 participants