Code run in chrome browser outputs different result [closed]

function komb(br, action) {
    for (let i = 0; i < br; i++) {
       action();
    }
 }
 function actionfu() {
      console.log('act')
 }
 komb(6, actionfu);

Instead of always getting ‘act’ printed 6 times, it is printed 3 or 4 or 5 or 6 times.
(This is in Chrome, I can’t run any code in vs code, for some reason)