how to use document write with multiple lines code example Example: document.write multiple lines document.write( 'line1' +'line2' +'line3' )