When I open the HTML with the below JavaScript, `starting timer` gets logged in the console, but then my mouse icon just spins.

```
window.onload = function() {
    console.log("starting timer");
    var n = 0;
    var id = setInterval(function() { console.log("hello"); n++ }, 100);
    while(true) {
        if( n > 5 ) {
              clearInterval(id);
              break;
        }
    }
    console.log("finished timer");
}

```

Am I creating some type of infinite loop here?