let proceed = confirm("Are you sure you want to proceed?"); if (proceed) { //proceed } else { //don't proceed }