Skip to content

Final exercise JS basic algorithms#48

Closed
bartsmet30 wants to merge 4 commits into
ironhack-labs:masterfrom
bartsmet30:master
Closed

Final exercise JS basic algorithms#48
bartsmet30 wants to merge 4 commits into
ironhack-labs:masterfrom
bartsmet30:master

Conversation

@bartsmet30
Copy link
Copy Markdown

No description provided.

for (var i = 0; i < halfString; i++) {
if (inputUppercase[i] !== inputUppercase[inputUppercase.length - i - 1]) {
console.log("The word is not a palindrome");
break;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

intenta no utilizar los break si no son un switch. Esto lo puedes resolver utilizando un return del console.log(). Ten en cuenta que el return es lo último que ejecuta una función

Copy link
Copy Markdown

@ta-web-mad ta-web-mad left a comment

Choose a reason for hiding this comment

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

Buen ejercicio Bart, está muy bien, te he dejado un comentario en el código.

@ta-web-mad ta-web-mad closed this Oct 31, 2017
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