How To Find The Average From The Array (Javascript Easy Algorithm Problem)

preview_player
Показать описание
Write a function that takes in an array of numbers and outputs the average of all the numbers.

Easy JavaScript algorithm problem.

Let's Connect 💯:
════════════════════════════
Рекомендации по теме
Комментарии
Автор

I really appreciate you starting with pseudocode. It's helped me to begin to break down a problem step by step. If I start with code first, I can get a bit lost in my head. But Pseudocode first makes a lot more sense for me. Thanks David

NrOx
Автор

love that you pseudocoded! I struggle with that so it's nice seeing examples.

lourdes
Автор

2:59 Can someone please explain why the “average” is written outside of the loop?

miss_kolissa
Автор

Sick. Question if array is empty how would you code it to have a 0 value?

biwank
welcome to shbcf.ru