Tell us what’s happening: I am following the exact instruction for step 11 emoji reactor it somehow it still fails , i am stuck and it will be great if i can get some help
Your code so far
const happyBtn = document.querySelector("#happy-btn");
const updateCount = (btn) => {
const countEl = btn.querySelector(".count");
let currCount = +countEl.textContent.split("/")[0];
if (currCount === 10) return;
currCount++;
countEl.textContent = `${currCount}/10`;
};
happyBtn.addEventListener("click", () => {
updateCount(happyBtn);
});
Lesson URL (copy - paste from your browser’s address bar)Build an Emoji Reactor: Step 11 | freeCodeCamp.org