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.
1 Like
https://www.codecademy.com/courses/learn-intermediate-javascript/articles/javascript-hoisting
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.
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.