1var deleteLinks = document.querySelectorAll('.delete');
2
3Array.from(deleteLinks).forEach(link => {
4 link.addEventListener('click', function(event) {
5 if (!confirm(`sure u want to delete ${this.title}`)) {
6 event.preventDefault();
7 }
8 });
9});
10