Answers for "javascript explode with new line"

0

string split javascript newline

let string = "Hi\nHow are you?"

let newstrings = string.split("\n"); // [ "Hi", "How are you?" ]
Posted by: Guest on May-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language