Learn Advanced Array Methods by Building a Statistics Calculator - Step 49

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

Hello, you have the 0 listed as a param it should go inside the reduce method dont forget the comma.

the 0, which would be the starting value of reduce, goes as second parameter of reduce. So you would have array.reduce(function, startingValue)

Thank you so much!

The syntax was confusing me and I lost where I was in the .reduce() method.