JSFiddle - React, Tailwind, and code Playground
by elvis reyes
JavaScript
var txt1 = "This is a very very very very very long line."
var txt2 = txt1.slice(0, 30) + " \n" + txt1.slice(30);
alert(txt2);
by elvis reyes
var txt1 = "This is a very very very very very long line."
var txt2 = txt1.slice(0, 30) + " \n" + txt1.slice(30);
alert(txt2);