When solving the Sleep Debt Calculator I keep getting unkown posted on the console under my answer. I really don’t know why. this is my code.Can you help me?
@net9066285782 When I put your code into my VS Code, it returned a lot of errors. The main thing I noticed was your apostrophe or single quote is much different than mine. It appears you are using smart punctuation, which I have read gives users in Javascript a bit of a problem.
No, it’s because the OP hasn’t used the code formatting option on Discourse.
The default ’ characters the forum uses don’t parse well in code editors otherwise. Lost count of the number of times a REPL has complained about them because of this.
@thepitycoder Ok, cool. I learn something new everyday. It sounds like the same thing as when I used to write reports in Microsoft Word then copy and paste to the program we used to submit the reports.
Yes exactly undefined (it was pretty late in the night when I posted this). oh wow such an easy answer. Thanks a lot for the help! I have been breaking my head over this.