Is \\n the universal newline character sequence in Javascript for all platforms? If not, how do I determine the character for the current environment?
\\n
I
I had the problem of expressing newline with \n or \r\n. Magically the character \r which is used for carriage return worked for me like a newline. So in some cases, it is useful to consider \r too.