Hi,

This code does not work fully. How could I improve it? This part works:" `stats`

should be an `object`

."

But these don’t:" `half(stats)`

should be `28.015`

" and

“Destructuring was used.”

```
const stats = {
max: 56.78,
standard_deviation: 4.34,
median: 34.54,
mode: 23.87,
min: -0.75,
average: 35.85
};
const half = (function() {
"use strict"; // do not change this line
// change code below this line
return function half(stats) {
// use function argument destructuring
stats = ({ max, standard_deviation, median, mode, min, average }) => {
return (stats.max + stats.min) / 2.0;}
};
// change code above this line
})();
console.log(stats); // should be object
console.log(half(stats)); // should be 28.015
```