+ 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>
+ 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>
+ 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 âââ :)