Question: I am trying to create a code to average the sum of 4 numbers and this is what I have but I am missing something
I am trying to create a code to average the sum of 4 numbers and this is what I have but I am missing something in the code

//Averages the numbers in a list/array let fct =( list) =>{ let sum =0; for (let nextElem of list) \{ sum = nextElem; let average = sum / 4 return average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
