As far as I can see there are three small mistakes. First you used the let method to create the variable. Usually the program wants it to be a const variable and it won’t accept the solution even if it’s otherwise correct.
Second there should be an array, meaning [ ] arond the sorted[…/2-1] part.
Third you used sorted.length instead of array.length in the last part.
It should look like this:
The getMean function takes an array as an argument, so you need to surround all this statement sorted[array.length/2],sorted[array.length/2-1] into [ ].
Also, to bypass the test you need to use the array’s length property and you did except for the last one: