Skip to content

Commit 7ef843a

Browse files
committed
adapted the alert message to prevent to deleted it.
1 parent 323fbf6 commit 7ef843a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

debugging/book-library/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function render() {
118118
deleteButton.className = "btn btn-warning";
119119
deleteButton.innerHTML = "Delete";
120120
deleteButton.addEventListener("click", function () {
121-
alert(`You've deleted title: ${myLibrary[i].title}`);
121+
alert(`You are deleting: "${myLibrary[i].title}" Are you sure?!`);
122122
myLibrary.splice(i, 1);
123123
render();
124124
});

0 commit comments

Comments
 (0)