Skip to content

BCN - Caroline#204

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

BCN - Caroline#204
Caroline-GMR wants to merge 2 commits into
ironhack-labs:masterfrom
Caroline-GMR:master

Conversation

@Caroline-GMR
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

@tawebbcn tawebbcn left a comment

Choose a reason for hiding this comment

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

Good work. Just a couple of things to note regarding trimStart. Also, you used the array methods like split, reverse, etc which we still havent looked at.

for (var i = 0; i < hacker1.length; i++){
capitals += " " + hacker1[i];
};
console.log(capitals.trimStart().toUpperCase());
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 skipped the trimStart() if you swap the order of the space and hacker1[i]

@tawebbcn tawebbcn closed this Aug 21, 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