3 ms·
The behavior is slightly different. "\n" is a newline, '\n' is a backslash and an n.
by ficklepickle 8y ago
The behavior is slightly different. "\n" is a newline, '\n' is a backslash and an n.
- lauritzsh 8y agoNot in JavaScript. \n is treated as a newline in both cases. Try it out in the console.