Log in

Median - error in Test bloc - JavaScript

  • 22 May '17

When I run my script on the "Median " challenge in Javascript,
One of the Tests triggers a ReferenceError on the Global.list() invoked function.
As far as I know, there is no Global.list() function in standard JavaScript.

Is there a problem in the JavaScript implementation of the Test Bloc, or the errors comes from my code?
It is the last Test in the Test Bloc and the others passed without any problems.

Thank you for your answers!


assert.equal(median(list(range(1000000))), 499999.5, "Long.");


ReferenceError: list is not defined

at evalmachine.<anonymous>:23:25`