confirmation alert box in 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")
}