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