js alert confirm prompt 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")
}