In order to ensure the developer cannot use “stateful” operations such as
while loops and mutation methods such as
push I used esprima to statically analyse their solutions. If the developer tries to use one of these operations the tests will throw an error.
All of the instructions for downloading and completing the tests are available on Github. I’d be very interested to hear any thoughts or suggestions you may have about how these can be improved.