alert, prompt and confirm dialog boxes of javascript code example
Example: alert confirm prompt javascript
if (confirm("Press a button!")) {
console.log("Accepted")
} else {
console.log("Declined")
}
if (confirm("Press a button!")) {
console.log("Accepted")
} else {
console.log("Declined")
}