Answers for "js replace all n with newline"

2

javascript replace \n

var r = "I\nam\nhere";
var s = r.replace(/\n/g,' ');
Posted by: Guest on June-24-2020

Code answers related to "js replace all n with newline"

Code answers related to "Javascript"

Browse Popular Code Answers by Language