javascript alert user confirmation 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")
}