write new line in text file js code example
Example 1: javascript line break
//in JavaScript, you can declare a line break (or new line)
//with the \n character.
var linebreak = '\n';
Example 2: javascript string return character
var str = "HELLO WORLD";
var res = str.charAt(0);