document.write to write a variable code example
Example 1: document write
document.write("Hello World!");
Example 2: how to write in js
document.write("put your text here!");
document.write("Hello World!");
document.write("put your text here!");