js click event limitation code example
Example: javascript count number of clicks limit
let count = 0;
count++;
console.log(count);
if (count>6){
document.getElementById("btn").disabled = true;
alert("Game over!!!");
}
let count = 0;
count++;
console.log(count);
if (count>6){
document.getElementById("btn").disabled = true;
alert("Game over!!!");
}