So I’m curious as to what’s exactly expected here:
Of course the return statements are similar now, but I’m not sure what is happening and expected here.
It is expected that the return statements are the same – not just similar.
I added the strings myself.
Is it expected to get around or make use of hoisting to execute the second function?
No, if the correct string is printed to the console, it’s fine.
You could move the declaration of the
phrase variable with the function call to the top to see hoisting in action, but it’s not required.