BCN - Andrea, Julien by Julienchilhagopian · Pull Request #156 · ironhack-labs/lab-javascript-basic-algorithms · GitHub
Skip to content

BCN - Andrea, Julien#156

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

BCN - Andrea, Julien#156
Julienchilhagopian wants to merge 1 commit into
ironhack-labs:masterfrom
Julienchilhagopian:master

Conversation

@Julienchilhagopian

Copy link
Copy Markdown

@tawebbcn tawebbcn left a comment

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.

Good job! Keep working hard! 💪

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.

it's ok, but you don't need to create a variable for that. It will not modify its value if you modify the hacker1 variable.

var length1 = hacker1.length;
var length2 = hacker2.length;

if (length1 > length2) {

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 have used if (hacker1.length > hacker2.length) {

}


var letters = hacker1.split('').join(' ');

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.

cool

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.

nice stuff

@tawebbcn tawebbcn closed this Jun 11, 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