2create studio interview question

How are timeouts in javascript working?