actually not, it just syntax error in this comment, everything allright in browser consol, it gives needed error in any cases that are not in range (-8,8) , but it just does not pass tests.
there is a syntax error in your error which would create an error but during compile time which i would assume is not where you would like to throw that particular error :)
actually not, it just syntax error in this comment, everything allright in browser consol, it gives needed error in any cases that are not in range (-8,8) , but it just does not pass tests.
there is a syntax error in your error which would create an error but during compile time which i would assume is not where you would like to throw that particular error :)
There is some problem to solve test (to raise an error) in JS , because just 'throw new Error('error)' doesn't works