calling sweetalert model code example Example: how to use sweetalert <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>