window.alert()
This function is used to display data in an alert dialog box. alert function really should be used only when you truly want to stop everything and let the user know something.
Syntax :
window.alert(“Hello Chandan”);
window.alert(variable);
Example:-
Output:- (Note: if you write HTML code within this function then the HTML tag looks like as it is written.)

- How To Set Up Apache Virtual Hosts on Ubuntu 20.04.2 LTS - October 28, 2021
- How to Fix ” Vue packages version mismatch:” error in Laravel 5.5 - April 15, 2021
- Laravel say that Auth guard [user] is not defined - April 15, 2021