Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ficklepickle
· 7y ago · 0 comments
The behavior is slightly different. "\n" is a newline, '\n' is a backslash and an n.
Comments
[–]
lauritzsh
7y ago
Not in JavaScript. \n is treated as a newline in both cases. Try it out in the console.