add a new line to alert javascript code example
Example 1: javascript alert box new line
alert("Line 1\nLine 2");
Example 2: javascript newline in alert
alert("Well I'm line 1 \nAnd I am a new line "); //new line in alert box
alert("Line 1\nLine 2");
alert("Well I'm line 1 \nAnd I am a new line "); //new line in alert box