79229223

Date: 2024-11-27 06:58:37
Score: 1
Natty:
Report link

The logic is fine and works, the bug was due to checkBtn and clearBtn variable not being initialized, and to do so just add these at the top of your script.js:

const checkBtn = document.getElementById('check-btn')
const clearBtn = document.getElementById('clear-btn')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: arc ward