Language: JavaScript. The pull request has one bug. You get three tries to find the line, then a short debrief.
The heart button toggles a product in the favourites list: a product that is already there is removed, a new one is added. The list holds at most 50 products.
Codetrap needs JavaScript: the code review happens in your browser.