Skip to content

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy