These are the errors that I get:
Does the code contain a function named myNightSky() defined with const?
Did you write a console.log() statement beneath the close of the function block?
Did you pass the myNightSky() function to console.log() as an argument?```
It may be due to the short hand nature of the arrow function, or possibly the string interpolation. Either way is this a bug or am I missing something?
const satellite = 'The Moon';
const galaxy = 'The Milky Way';
let stars = 'North Star';
const myNightSky = () => `Night Sky: ${satellite}, ${stars}, ${galaxy}`
console.log(myNightSky());
It is quite common for the lesson checking program (SCT) to not be exhaustive so we should assume that not all submissions will be accepted, even though they are programmatically sound.
When you encounter situaltions like this, then the course of action would be to submit a Bug Report with your suggestions. Posting it in the track Q&A is not the best place to post your comments. Itās just so much white noise on the forums.
That is understandable, although Iād expect the lessons to be a bit more explicit if the lesson checking program is unable to determine if the code meets the criteria.
I posted this here because I am a student, and I was not certain if there was something I was missing. There are plenty of times I am sure I did something correct, only to realize I made a simple mistake. Iād be more concerned with a bunch of bug reports containing user errors, but if that is how you want it to be done, I have no problem doing that.
Actually, there are a couple of forums that one would hope the folks on the corporate side are keeping up with:
Platform Problems
Suggestions
Please donāt take me too seriously concerning the āwhite noiseā comment. Itās not something we can do anything about and get comments on a daily basis that just make our eyes roll, being hamstrung on the volunteer side of things.