how to set click limit on button js 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!!!");
}