Interaction Methods:
const userInput = window.prompt("Please enter your name:", "John Doe");
const confirmDeletion = window.confirm(`Are you sure you want to delete ${userInput}?`);
if (confirmDeletion) {
alert("Item deleted successfully!");
} else {
alert("Deletion cancelled.");
}
Interaction Methods: