write java code in javascript code example Example: how to write in js document.write("put your text here!");