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

[MAD][WEB-PT0418][EDNA-DOMINGOS]#368

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
ednadv wants to merge14 commits intoironhack-labs:masterfromednadv:master

Conversation

ednadv
Copy link

Se que era un ejercicio por parejas , pero mi compañero ya lo subio y no me entere de nada , asi que prefiero subir esta realemente lo que yo entiendo.(Por el momento )

fontcubertaand others added14 commitsJanuary 10, 2017 17:49
…one" but the test is expecting for the string itself, i change the Readme file wich is the quck fix, but may be could be good to change the spec file to not confuse the student.
…tion-fixthe test are waiting for undefined but the description says false
Copy link
Contributor

@ta-web-madta-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.

Lo que has hecho lo has hecho muy bien Edna, no decaigas y sigue así. Ánimo!

else {
return num2;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Muy bien, así es, mírate también la documentación del la función Math.max( ) y prueba a ponerlo en práctica con este ejercicio


return longestWord;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Muy bien!

}
return sum;

}
Copy link
Contributor

Choose a reason for hiding this comment

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

Genial, mira también cómo hacerlo con la función reduce( ), que es súper útil para estos casos

var average = sum /numbersTwo.length;

return average;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Muy bien Edna, además has reutilizado una función que declaraste antes, genial!

wordLLength[i]
}

}
Copy link
Contributor

Choose a reason for hiding this comment

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

El proceso para este ejercicio es:
1 - Iterar sobre el array que recibe la función
2- Por cada vuelta almacenar en una variable sumatorio (o acumulador) la longitud de cada elemento del array
3- Cuando acabe el bucle, haces la media de ese acumulador con el número de elementos del array que recibes (como en el ejercicio anterior)

Recuerda, dividir en microproblemas te ayudará a resolver más facilmente el problema general, ánimo!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ta-web-madta-web-madta-web-mad left review comments

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

Successfully merging this pull request may close these issues.

7 participants
@ednadv@ta-web-mad@mc100s@fontcuberta@nizaroni@papuarza@HectorBlisS

[8]ページ先頭

©2009-2025 Movatter.jp