JavaScript is single-threaded: only one task can run at a time. When we invoke a function, it gets added to something called the call stack. The call stack is part of the JS engine, this isn't browser specific.
Sort: