PP-WDFT-MEX-ARTURO-ARAUJO-ADRIAN-ACEVEDO by GamaCodes · Pull Request #628 · ironhack-labs/lab-javascript-basic-algorithms · GitHub
Skip to content

PP-WDFT-MEX-ARTURO-ARAUJO-ADRIAN-ACEVEDO#628

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

PP-WDFT-MEX-ARTURO-ARAUJO-ADRIAN-ACEVEDO#628
GamaCodes wants to merge 1 commit into
ironhack-labs:masterfrom
GamaCodes:master

Conversation

@GamaCodes

Copy link
Copy Markdown

En la parte del bonus 1 , al hacer el comparativo de et, la función no hace el conteo de 'et'.

@ta-web-mex ta-web-mex left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Buen trabajo! 👏

Comment thread js/index.js

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Necesitas doble o triple igualdad para que tu condicional funcione. Se recomienda triple igualdad porque conoces el tipo de dato que viene y sabes que tiene que ser el mismo que "et".

for (let i = 0; i <= spaceWorl.length; i++){
  if(spaceWorl[i] === 'et'){
    counter = counter + 1
  }
}

@ta-web-mex ta-web-mex closed this Jan 7, 2020
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