JavaScript is a 'synchronous single-threaded' language. Every major browser has its own JS engine. Every time a function is met inside the code, a new Execution Context is created. The first line is executed and only when this is finished it goes for the next line.
Sort: