Scope? what is wrong?


#1


const satellite = 'The Moon';
const galaxy = 'The Milky Way';
let stars = 'North Star';

 function myNightSky ()  {
  return 'Night Sky: ' + satellite + ', ' + stars + ', ' + galaxy;
}
console.log(myNightSky());


it must be a bug in this section right??


#2

never mid i got it fixed…
forgot to write down this way

 myNightSky = () =>


#3

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