How to make a new line in JavaScript?

To make a new line in JavaScript, insert these 2 characters into a string: \n.

Here's how you do it:

const stringWithNewLines = 'Hello\n\n\nWorld!';

// Hello
//
//
// World!
console.log(stringWithNewLines);