function for a value to go up +0.01 when called in javascript not working (beginner)

后端 未结 0 1226
小蘑菇
小蘑菇 2021-01-28 14:41
function startGame(){
  let currentpoints = 0.01;
  var writepoints = document.
  getElementById("score").innerHTML = currentpoints += 0.01;
  writepoints;
}
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题