How to line break in JQuery alert?

I tried to do line break in alert JQuery? It should pop up like this

Good
Byee

alert("Good<br>Byee");

Is there any way to break line in JQuery?


Solution 1:

This is not the jQuery, this is a pure Javascript

alert('Good\nByee');

Solution 2:

Use \n for line break in alert message.

alert("Good\nByee");

Solution 3:

\n character is used as newline character:

alert("Good\nByee");