sweet alert register success code example Example: sweet alert swal("Good job!", "You clicked the button!", "success");