Using JS to redirect instead of anchor tag
The
makeCard() basically returns a div thats wrapped in an anchor tag. And I am adding click event listener to all the anchor tags cause i have to store the id in local storage of the card that has been clicked .
This works but idk why something feels sketchy about this to me. Idk what. Does this approach have any drawback?
