skip to Main Content

Javascript – change counter color in js

i want to change color to green when my counter number were grater than zero and change to red when counter less than zero const addBtn = document.getElementById(`add`); const resetBtn = document.getElementById(`reset`); const minusBtn = document.getElementById(`minus`); const counter = document.getElementById(`counter`);…

VIEW QUESTION
Back To Top
Search