sweet alert 2 javascript code example Example: sweet alert 2 swal("Thank You!", "You clicked the button!", "success");