Answers for "how to split by nextline in javascirpt"

1

split text by new line javascript

myText.split(/\n/)
Posted by: Guest on January-24-2021
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