how to make yes or no questions in browser in js code example
Example: how to take yes or no in js
ans = confirm('continue ?');
//returns a boolean response
if (ans){
//condition returns true...
}
else(){
//condition returns false...
}
ans = confirm('continue ?');
//returns a boolean response
if (ans){
//condition returns true...
}
else(){
//condition returns false...
}