myFunction() { var x; if (confirm("Are you sure?") == true) { x = "You pressed OK!"; } else { x = "You pressed Cancel!"; } return x; } myFunction();
if(confirm('are you sure?'){ //blow up the universe