Tell us what’s happening:
I’ve finished my JS calculator and everything is working as intended, however I’m failing more than half the test on a technicality. For some reason, my button and display elements have a
\n character at the end of them, but I’m not sure which part of my code is adding those new lines in. So, I’m getting errors like
"expected '=\n' to equal '='" for my
#equals button, and the same for my
#decimal, etc. How can I avoid this
\n being added in?
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.
Link to the challenge: