javscript next line code example Example 1: how to go to next line in javascript document.write("\n"); Example 2: new line javascript console.log('Hello \n World');