Skip to content

FTWD Miami Neil Rampersad#93

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

FTWD Miami Neil Rampersad#93
neilxcode wants to merge 1 commit into
ironhack-labs:masterfrom
neilxcode:master

Conversation

@neilxcode

Copy link
Copy Markdown

Lab 1

for (i = 0; i < hacker1.length; i++)
{
s += hacker1[i].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.

This will work although we can do the same using JS methods:

for (var i = 0; i < 1; i++) {
  console.log(
    hacker1
      .split("")
      .join(" ")
      .toUpperCase()
  );
}

for (i = hacker2.length-1; i >= 0; i--)
{
t += hacker2[i]

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.

The same as above:

for (var i = 0; i < 1; i++) {
  console.log(
    hacker1
      .split("")
      .reverse(" ")
      .join("")
  );
}

@sandrabosk

Copy link
Copy Markdown
Contributor

Amazing work! Thank you for submitting.

@sandrabosk sandrabosk closed this Apr 3, 2018
@neilxcode

neilxcode commented Apr 4, 2018 via email

Copy link
Copy Markdown
Author

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