how to write html with javascript

JavaScript
document.write("put your text here!");document.write("text");document.write("Hello World!");document.write("Hello") !-- Hello for example
Source

Also in JavaScript: