DEV Community

Ahmad
Ahmad

Posted on

JS, Local Storage

Top comments (1)

Collapse
 
barakplasma profile image
Michael Salaverry

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