It’s very strange indeed! But I discovered that there was something weird with the & in your HTML characters. To see this, you can click between & and a in & or between & and l in < and then do backspace. You will notice that you need two backspaces to remove &. Its like there is some invisible character in there for which I do not know the explanation.
What @Tomvbesaid, you have a character with encoding that isn’t understood inserted after the &. The actual character is a zero-width-space (the bytes E2 80 8B). It will probably have been introduced when copy-pasting between things.
If I paste into the JS scratchpad in Firefox (or most text editors), it’s pretty obvious (the red dot is a character it doesn’t understand):
And if I look at the & in a hex editor (I’ve highlighted the bytes that shouldn’t be there):
Just to try to figure out where this is coming from, are you moving between a text editor and the FCC editor?
Or have you copy/pasted the HTML character codes (& etc) from somewhere? There might be dodgy encoding on the page they came from if so.
The character encoding issues could also be coming from your device. I know that iPhones and iPads have settings that screw with quotation marks, and other built-in keyboards could cause problems as well.
Hey @Tomvbe, @DanCouper, @ArielLeslie , Can repl.it cause the problem, cause I solve the problem there in order to save it, and then copy paste it here. I have a window laptop
Hey I was wondering why did not faced this issue while executing this code in replit which had this particular character passed all tests. Could it be because replit compiler ignored this character?