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
I am looking for help to finish this question. Have I managed to pass the max and min ?

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 = (stats) =>{ 
  
  const{max, min} = stats/2; 
};
// 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/110.0.0.0 Safari/537.36 OPR/96.0.0.0

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

Link to the challenge:

You aren’t using destructuring in the arguments list like shown in the example:

const profileUpdate = ({ name, age, nationality, location }) => {

This isn’t the solution. You aren’t using destructuring in the arguments list. You need to convert the given code so that it uses destructuring in the arguments list.