DEV Community

shameem-dev
shameem-dev

Posted on

Alert vs confirm in javascript

In JavaScript, an alert box is used to display information to the user, while a confirmation box is used to verify or accept something.
**
the confirmation box provides the user with the option **to confirm or cancel an action.

Top comments (0)