my project does the following: 1/create a Book constructor function 2/ make instances and push them to an array 3/ map through the array and display items dynamically 4/ remove a certain array item upon clicking a button , yet when i filter the array using data attribute nothing changes and the array stays the same and i can't find a solution please help!
CodePudding user response:
I guess you should remove whitespaces around ${book.title}
in the 21st line.