sweet alert code example
Example 1: sweet alert
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
Example 2: sweet alert
swal("Good job!", "You clicked the button!", "success");
Example 3: sweet alert
swal("Good job!", "You clicked the button!", "error");
Example 4: sweet alert
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
Example 5: sweet alert
swal("Good job!", "You clicked the button!", "success");
Example 6: sweet alert
swal("Hello world!");
Example 7: sweet alert
Swal.fire( 'Good job!', 'You clicked the button!', 'success')