Tell us what’s happening:
Good afternoon,
I was under the impression that you had to set .reduce to 0 in the function body, I am unsure how to do this while leaving the function body blank
Your code so far
/* file: script.js */
// User Editable Region
const getVariance = (array) => {
const mean = getMean(array);
const variance = array.reduce((el, acc, 0) => {})
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Challenge Information:
Learn Advanced Array Methods by Building a Statistics Calculator - Step 49