JSFiddle - React, Tailwind, and code Playground
by ason5861_cs
HTML
<textarea id="tb" rows=5>
Output: -------------
</textarea>
JavaScript
var tb = document.getElementById("tb");
var newLine = "\r\n";
var text = "Output: " + newLine + "-------------------" +
newLine + "line 1: " +
newLine + "line 2: ";
tb.value = text;
console.log(text);