+ 1

I wanna to make a scoresistem

But I dont know how to do this

7th Sep 2016, 9:49 AM
The Guayguy
The Guayguy - avatar
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>
7th Sep 2016, 12:27 PM
freshnewname
freshnewname - avatar
+ 3
you are very good in html
8th Sep 2016, 8:05 AM
melek bz