Buat tombol hitung i js

<button type="button" onClick="onClick()">Click me</button>
<p id="clicks"> Clicks: 0 </p>
 Run code snippetHide results
Inquisitive Ibis