Testing in JS isn't that complicated. You can use something like
Mocha to test your JS functions. I
use Chai to have a fancier
assert.
Can you fix script.js to make it pass all the tests in
tests.js?
script.js ×
tests.js ×