javascript end of line character or Line endings in Javascript I had been trying to find the end of line EOL character in javascript so that i could pass the end of line character to a function for some string operation. It seems to be : "\n"