Skip to content

Module1_Assignment_Boyuan_Amsterdam_pt0107 - #657

Closed
sbyshjd wants to merge 5 commits into
ironhack-labs:masterfrom
sbyshjd:master
Closed

Module1_Assignment_Boyuan_Amsterdam_pt0107#657
sbyshjd wants to merge 5 commits into
ironhack-labs:masterfrom
sbyshjd:master

Conversation

@sbyshjd

@sbyshjd sbyshjd commented Jan 10, 2020

Copy link
Copy Markdown

No description provided.

Comment thread js/index.js
}
}
for(let i=0; i<outPut.length; i++) {
if(outPut.substr(i,3)==='Et '){

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can also use another "| || operator in the first for loop and remove the second for loop.

Comment thread js/index.js
//console.log(newPhrase);

//B2.3 test if the phrase is a Palindrome phrase.
if(newPhrase === phraseToCheck) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You should use ".toLowerCase()" in your if statement in case there are uppercase letters in phraseToCheck.
So if(newPhrase.toLowerCase() === phraseToCheck.toLowerCase()){...}

@stale

stale Bot commented Feb 10, 2020

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it didn't have any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale label Feb 10, 2020
@stale

stale Bot commented Feb 12, 2020

Copy link
Copy Markdown

This pull request is closed. Thank you.

@stale stale Bot closed this Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants