1. In javascript alert function is used for displaying read-only message in a popup box.
2. alert is a built-in function in javascript.
3. We can customize look and feel of popup box displayed by alert function.

Syntax for alert:

   alert('welcome to skillgun');
Note: Do not use alert box too many times in web programming since too many alert boxes gives irritation to users.