Hey! Sorry about the really late replies. Too bad others couldn't help out, too!
It's returning to whatever is calling it. In this case, likely just test code.
I'm a bit confused by "another return". Because you want to return a value, you need to have a
return. Math.sqrt does have a
return or equivalent (likely written in a different lang., one which may not use a return), but if you want to use its value as the return value of a function you're writing, you need to have
return Math.sqrt ...
I'm guessing I may not quite be following so post a followup if needed!
Also, is it possible to do this exercise using a function declaration
Not really, as it needs to be attached to the object's valueOf property.
In theory, although the challenge may not be this flexible itself, I think you could have a function declaration outside of the object, and refer to that function declaration. Not 100% this would work, and I don't think this'd normally be done.