three small comments:
1) there's a typo on the results div on first load; shows "Resut" but should be "Result"
2) you add 4 event listeners for every button, which isn't a best practice. allBtns.forEach((btn) => { It would be better to target each button separately, since you already check for the class name of each button to add it's event handler.
3) try describing why this exists, and what you're trying to show us
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
three small comments:
1) there's a typo on the results div on first load; shows "Resut" but should be "Result"
2) you add 4 event listeners for every button, which isn't a best practice.
allBtns.forEach((btn) => {
It would be better to target each button separately, since you already check for the class name of each button to add it's event handler.3) try describing why this exists, and what you're trying to show us