plus 1 minus 1

PHOTO EMBED

Tue Nov 02 2021 08:09:21 GMT+0000 (UTC)

Saved by @inkyy #javascript

var score = 1;
function up(){
  if(score < 10 ){
    score ++;
  }
  document.getElementById("result").innerHTML = score;
}

function down(){
  if(score > 1){
    score --;
  }
  document.getElementById("result").innerHTML = score;
}
content_copyCOPY