Closed tvcrawley closed 8 years ago
what if you replace textContent
with innerHTML
https://github.com/Chibiania/game-lab/blob/168741baeec88ebb25bd1d350be8b66382808f3a/script.js#L78
Try \\n
.
What's going on here is Javascript is trying to "escape" the characters -- for example, turn <
into <
.
*I changed textcontent to innerhtml but there is no difference
Just got help from Matt.
The answer was +"
"+ with the innerhtml
Hi!
So I tried using \n, break line command, backslash, and concat. I also went to Joe for help and he couldn't figure it out either.
I expected the text beginning with \" to be displayed on the next line.
This happens:
The link to my repo is https://github.com/Chibiania/game-lab/blob/master/script.js my question is about line 4.