how to right text with js

JavaScript
document.write("text");
Source

Also in JavaScript: