Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PTMAD102022] DANIEL OLEA GARCIA#3404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
OleaOnize wants to merge1 commit intoironhack-labs:masterfromOleaOnize:master

Conversation

OleaOnize
Copy link

Ejercicio resuelto menos una parte del#6 y bonus final

@marco238
Copy link

hola Daniel! Te dejo algo de feedback en el código. Pero en general muy buen trabajo!!! 🚀

@marco238
Copy link

Por el bonus ni te preocupes! Buen trabajo!!!

}
for (let i = 0 ; i < wordsFind.length ; i++){
if (!wordsFind[i].includes(word)){
return false;

Choose a reason for hiding this comment

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

aquí lo que te está pasando es que en la primera iteración del "for", estás haciendo un return que termina la función y deja de analizar el resto de iteraciones.

Choose a reason for hiding this comment

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

intenta con una variable auxiliar que empiece siendo "false":

function doesWordExist(wordsFind, word) {  if (wordsFind.length === 0) {    return null;  }  let exists = false;  for (let i = 0 ; i < wordsFind.length ; i++){    if (wordsFind[i].includes(word)){      exists = true;    }  }  return exists;}

@stale
Copy link

stalebot commentedJan 8, 2023

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.

1 similar comment
@stale
Copy link

stalebot commentedApr 7, 2023

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.

@stalestalebot added the stale labelApr 7, 2023
@stale
Copy link

stalebot commentedJun 7, 2023

This pull request is closed. Thank you.

@stalestalebot closed thisJun 7, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@marco238marco238marco238 left review comments

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@OleaOnize@marco238

[8]ページ先頭

©2009-2025 Movatter.jp