JavaScript newline dalam peringatan
alert("Well I'm line 1 \nAnd I am a new line "); //new line in alert box
Grepper
alert("Well I'm line 1 \nAnd I am a new line "); //new line in alert box
//alert function is used to prompt alert box
//inside the quotes we write string to display
//use \n to enter new line
alert("John\nJames\nSteve");
alert("My name is \n Undefined");