Please tell me what is wrong with the following code when I attempt to complete step 2 of Part 3. Global Scope of the Scope lesson in Learn Javascript. Thanks.
The code compiles correctly. The text returned was copied from the exercise.
URL: https://www.codecademy.com/courses/introduction-to-javascript/lessons/scope/exercises/global-scope
Tutorial Task: Below the variables created in the previous step, write a function named callMyNightSky. Inside the function, include a return statement like this:
**return 'Night Sky: ' + satellite + ', ' + stars + ', and ' + galaxy;**
My attempt 1:`
**callMyNightSky = () => **
**'Night Sky: ' + satellite + ', ' + stars + ', and ' + galaxy;**
Compile error message (on Run): None
Tutorial error message: Oops! The test returned an error. Maybe you have a syntax error, or a typo. See full error.
My attempt 2:
function callMyNightSky () {return
'Night Sky: ' + satellite + ', ' + stars + ', and ' + galaxy;
}
'''
Compile error message (on Run): None
Tutorial error message: Oops! The test returned an error. Maybe you have a syntax error, or a typo. See full error.
**********************************************************************