+ 1
I wanna to make a scoresistem
But I dont know how to do this
2 Answers
+ 3
<button onclick="add()">Increment</button>
<p id="p">0</p>
<script>
function add()
{
var score = document.getElementById("p").textContent;
document.getElementById("p").innerHTML = ++score;
}
</script>
+ 3
you are very good in html