for complete tutorial you can read slowly in this link sweetalert2 . and now i choose simple method for call it add  <script src= "https://c…