Alert.alert code example

Example 1: bootstrap alerts

Example 2: js alert

alert("Hello! I am an alert box!!");

Example 3: alert bootstrap

Example 4: change size of alert bootstrap

In Bootstrap (v4 and v5), use this width modifier (w-25, w-50, w-75):

Example 5: how to make alert in javascript

alert("Alert")

Example 6: js alerts

3 types of JS Alerts

            - Information : You can only accept.
            - Confirmation: You can accept or decline.
            - Prompt    : You can accept, decline, and/or sendKeys.

Tags:

Misc Example