js yes no prompt code example
Example 1: js alert yes no
if (confirm('Are you sure you want to donate to Andrew Hyder?')) {
// true (paypal.me/andrewdhyder)
} else {
// false
}
Example 2: prompt js
var answer = prompt("How are you? ");
if (confirm('Are you sure you want to donate to Andrew Hyder?')) {
// true (paypal.me/andrewdhyder)
} else {
// false
}
var answer = prompt("How are you? ");