tubeshowcase●1,192,284 videos♡ My collection 0
← Learn to Code

Learn to Code09:17

JavaScript COUNTER PROGRAM 🔢

Bro Code ↗

From the creator

00:00:00 Intro 00:00:27 HTML 00:02:16 CSS 00:05:58 JavaScript // COUNTER PROGRAM const increaseBtn = document.getElementById("increaseBtn"); const decreaseBtn = document.getElementById("decreaseBtn"); const resetBtn = document.getElementById("resetBtn"); const countLabel = document.getElementById("countLabel"); let count = 0; increaseBtn.onclick = function(){ count++; countLabel.textContent = count; } decreaseBtn.onclick = function(){ count--; countLabel.textContent = count; } resetBtn.onclick = function(){ count = 0; countLabel.textContent = count; }

Published 2023-10-18 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code