This comment is hidden because it contains spoiler information about the solution
Issue with your code, that's not the way to retrieve indexes
Glad you got it sorted out. :)
Hi @exor, I can only see a partial solution from you and it looks like you're raising the error correctly ie throw 'error'. What message do you get that's causing your solution to fail?
throw 'error'
I try "return 'error'" - not work for me. Just return.replace(/return/, 'throw')
The tests just check for an error so the error itself doesn't matter.
In JavaScript for example throw "error"
throw "error"
I think I estimated it at a 7. I won't complain if you do something about it.
Can you?
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
Issue with your code, that's not the way to retrieve indexes
Glad you got it sorted out. :)
This comment is hidden because it contains spoiler information about the solution
Hi @exor, I can only see a partial solution from you and it looks like you're raising the error correctly ie
throw 'error'
. What message do you get that's causing your solution to fail?I try "return 'error'" - not work for me. Just return.replace(/return/, 'throw')
The tests just check for an error so the error itself doesn't matter.
In JavaScript for example
throw "error"
I think I estimated it at a 7. I won't complain if you do something about it.
Can you?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution