DEV Community

Ahmad
Ahmad

Posted on

1 1

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

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →