+ 1

How can i create a click game?

How can i create a click game on web? Which is the code that i need to put on js? And on html? https://code.sololearn.com/W8fTsy1RqeVz/?ref=app

29th Oct 2018, 10:00 PM
MasterTom18
MasterTom18 - avatar
2 Antworten
+ 2
Get a reference to DOM element that you want edit and modify innerHTML prop like: function addToMoneys() { document.getElementById('moneys').innerHTML= (++money) }
29th Oct 2018, 10:20 PM
KrOW
KrOW - avatar
+ 1
thanks its work!
31st Oct 2018, 11:02 PM
MasterTom18
MasterTom18 - avatar