I am having issues passing these tests. I believe I have a working solution, but everything except the first case is failing with the message 'Value is not what was expected'. When I take my last line return num and do return num - 1 it shows me the errors saying expected {num - 1} to equal {num} and the numbers it shows are just one off of mine. Not sure exactly what is wrong. Is the function not supposed to just return a number?
Don't mutate the input.
Getting the same thing.. whyyyy
Same issue.
I am having the exact same issue.
I am having the same thing happening to me (just saw this post after posting about it last night).
Same issue for me. Even if i just return -1.
I am having issues passing these tests. I believe I have a working solution, but everything except the first case is failing with the message 'Value is not what was expected'. When I take my last line
return num
and doreturn num - 1
it shows me the errors sayingexpected {num - 1} to equal {num}
and the numbers it shows are just one off of mine. Not sure exactly what is wrong. Is the function not supposed to just return a number?