function print out text javascript code example Example: javascript print document.write("Hello world");