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

Tell us what’s happening:

Please can someone point out what’s wrong with this code
in this challenge I as told to use Math.sqrt() for my standardDeviation variable insted of Math.pow()

Your code so far

const getStandardDeviation = (array) => {
  const variance = getVariance(array);
  const standardDeviation = Math.sqrt(variance, 1/2);
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

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

can someone Please help me with this i’m stuck

Math.sqrt takes one single argument, remove the 1/2 part

1 Like

It’s almost like ya’ll should put that piece of pertinent information in the instructions or something.

Thank you for your feedback, would you like to open a github issue about it?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.