The rest operator in JavaScript, as far as I know, can be used on either the left-hand-side or the right-hand-side of the assignment operator. But the test case only allows it to be used on the left hand side and the test fails if operator is used on the right hand side.
Test fails:
Test passes: