I got small problem with my script
She looks like this:
i = 0;
setInterval(function() {
if(i < 100) {
i++;
}
}, 1000);
if(i == 100) {
alert("done");
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
But alert doesn't work after incrementing to 100. Why? How can i do that?