+ 4
Hello! Here new code the game clicker ↓↓↓ <button onclick="Func()"> click </button> <p id="main"> 0 </p> <script> var count = 0; function Func() { document.getElementById('main').innerHTML = ++count; } </script>
18th Dec 2017, 8:24 PM
James16
James16 - avatar
+ 3
You can do this as follows ↓↓↓ :) <button onclick="Func()"> click </button> <p id="main"> 0s</p> <script> var count = 0; function Func() { document.getElementById('main').innerHTML = ++count + "s"; } </script>
18th Dec 2017, 8:33 PM
James16
James16 - avatar
+ 3
<button onclick="Func()"> click </button> <p id="main"> 0s</p> <script> var count = 0; function Func() { document.getElementById('main').innerHTML = ++count + "s"; count = ++count / 1; } </script> try it ↑↑↑ :)
18th Dec 2017, 8:38 PM
James16
James16 - avatar