alert("Text you want on first line.
Text you want on next line");
//can use back-to-back "
" to add additional spacing between lines
alert("Line 1
Line 2");
//alert function is used to prompt alert box
//inside the quotes we write string to display
//use
to enter new line
alert("John
James
Steve");
alert("My name is
Undefined");
alert("welcom to javascript.
Happy coding");