how to print in javascript code code example Example: javascript print document.write("Hello world");