javascript line break h8 string code example
Example 1: new line in js
document.write("\n");
//second method for html page
document.write("<br>");
Example 2: javascript string return character
var str = "HELLO WORLD";
var res = str.charAt(0);
document.write("\n");
//second method for html page
document.write("<br>");
var str = "HELLO WORLD";
var res = str.charAt(0);