function confirmation() { const confirmation = confirm("Você realmente deseja realizar essa ação?\nEla não poderá ser desfeita."); if (confirmation === false) { return false; } return true; }