sayham-sjb
9/10/2017 - 3:28 AM

ClickCountWithJavaScript1.js

ClickCountWithJavaScript1 #js #VS

var count = 0;
var countButton = document.getElementById("countButton");
var displayCount = document.getElementById("displayCount");
countButton.onclick = function(){
  count++;
  displayCount.innerHTML = count;
}
resetButton.onclick = function(){
  count = 0;
  displayCount.innerHTML = count;
}