$begingroup$

<!DOCTYPE html>
    <html>
     <physique>
    
<p>
    The button was clicked
    <span class="total-clicks"></span>
    instances
</p>

<button id="btn1" onclick="addClick()">
    Click on Me!
</button>

<script sort="textual content/javascript">
    let clicks = 0;
    let click_power = 1;
    let reward_recevied = false;

    operate addClick() {
    clicks = clicks + click_power;
    if(clicks >= 10 && reward_received == false) {
        click_power = click_power + 1;
        reward_received = true;
    }
}
    operate addClick() {
        clicks = clicks + 1;
        doc.querySelector('.total-clicks').textContent
            = clicks;
    }



    

    // Simulate click on operate
    operate clickButton() {
        doc.querySelector('#btn1').click on();
    }

        </script>
    </physique>
</html>

David Humphrey is a brand new contributor to this website. Take care in asking for clarification, commenting, and answering.
Try our Code of Conduct.

$endgroup$

1