Global variables - error

Hi everyone,

I don’t understand why I keep getting errors when I declare functions. In the global variable task I have the following code:

const satellite = ‘The Moon’;

const galaxy = ‘The Milky Way’;

const stars = ‘North Star’;

const callMyNightSky() => {

return 'Night Sky: ’ + satellite + ', ’ + stars + ', and ’ + galaxy;


Which has an error of missing initializer. When I ask for the solution it appears like the exact same code is reproduced. What am I missing?

This is arrow function syntax:

const someFunction = () =>{

Can you see anything that you haven’t put in the function declaration?
This is what you’ve written:

const callMyNightSky() =>{

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.