javascript seperate on newline code example
Example 1: string split javascript newline
let string = "Hi\nHow are you?"
let newstrings = string.split("\n"); // [ "Hi", "How are you?" ]
Example 2: new line javascript
console.log('Hello \n World');