Create customized confirmation prompts and perform actions based on the user's choice using JavaScript.