enter string javascript code example
Example 1: new line javascript
console.log('Hello \n World');
Example 2: javascript string return character
var str = "HELLO WORLD";
var res = str.charAt(0);
console.log('Hello \n World');
var str = "HELLO WORLD";
var res = str.charAt(0);