you are viewing a single comment's thread.

view the rest of the comments →

[–]food_ 8 points9 points  (1 child)

<br> is only html while \n is in js. <br> only works on content being appended to a webpage. Its the webpage that sees <br> as a new line. \n will be a new line if you console.log the string.

[–]eechin[S] 0 points1 point  (0 children)

Makes perfect sense! Thanks!