I have the following function that utilises the setTimeout() function
someElement.addEventListener('click', function () {
    someElement.classList.remove('active');
    someElement.classList.remove('active--show');
    setTimeout(function () {
        someElement.classList.remove('some--class')
    }, 3000);
    someElement.classList.remove('another--class');
    someElement.classList.remove('and--another--class');
    someElement.classList.remove('and--another--class--again');
});
Does the current function carry on running the following commands (code snippet below) when reaching the setTimeout() function and once 3 seconds have passed run the script inside the setTimeout() function?
someElement.classList.remove('another--class');
someElement.classList.remove('and--another--class');
someElement.classList.remove('and--another--class--again');
Or does it get to the setTimeout() function, wait 3 seconds, then run the script inside it then carry on with the rest of the original function?
Appreciate any advice on this.
Thank you