Compare that to the code you’d have to write without Bootbox:
Each of these three functions calls a fourth public function which you too can use to create your own custom dialogs:
Documentation is available for each of these functions, including the options available for each dialog. You can also find examples for using each of these functions in the (appropriately named) Examples page.
Visit the Getting Started page for guidance on how to add Bootbox to your project.
There are some caveats to using Bootbox dialogs in place of native dialogs. Please see the Known Limitations section in the Documentation page to learn more.
Lastly — please just help spread the word!