Skip to content

Conversation

@Guglielmo123
Copy link

lab is done

Copy link

@joaopdg joaopdg left a comment

Choose a reason for hiding this comment

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

Great job on the lab Guglielmo, next time try to finish all the bonus!

for (let i=0; i<hacker1.length; i++){
variable += hacker1[i]+ " "
}
console.log(variable.toUpperCase())
Copy link

Choose a reason for hiding this comment

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

You should use the .toUpperCase() method inside the loop, otherwise you are not saving the string with the upper cased letters, you are just console logging it:

let hacker1Char = "";

for (let i = 0; i<hacker1.length; i++) {
    hacker1Char += hacker1[i].toUpperCase() + " ";
}

console.log(hacker1Char)

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