I want to add some score events using javascript

im new to this and i have this simple code for my game that increases score on click

var count = document.getElementById("score");
var score = 0;
var audio = new Audio('pop.mp3');

function increaseScore(){
    score++;
    count.innerHTML = score;
}

how do i add events like if score is bigger than 100 do a certain thing i already tried

if (score > 100) {

}

and its not workin