ES6 - Use Destructuring Assignment to Pass an Object as a Function's Parameters

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
const stats = {
max: 56.78,
standard_deviation: 4.34,
median: 34.54,
mode: 23.87,
min: -0.75,
average: 35.85
};

// Only change code below this line
const half = ({max, min}) => ((max + min) / 2.0);
// change code above this line


























_/ 2.0; 
// Only change code above this line
  **Your browser information:**

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

Challenge: ES6 - Use Destructuring Assignment to Pass an Object as a Function’s Parameters

Link to the challenge:

I am having problems with this lesson. I have searched on line and on this site and I am still having problems.

I have seen where others have had problems and there apparently is or was a bug , Others have commented that these lessons in this section are overly complex and the instructions are vague.

My question is whether my code is correct. I am wondering if my browser (google chrome), is causing problems.

If not, can someone help?

Works for me

1 Like

in my solution I didn’t use the extra brackets around the right-hand-side function just (max + min) / 2.0;
But as Jeremy said earlier, your solution works too.

Try another browser also or try disabling some chrome extensions (perhaps one of them is interfering somehow)

1 Like

I downloaded firefox developer edition. I solved it in 2 seconds!

Chrome is no good for free code camp. My settings said there were no extensions.

Thank you both so much!

1 Like

I am on chrome though and never had a problem. Not sure why this happened.