javascript single thread

Solutions on MaxInterview for javascript single thread by the best coders in the world

showing results for - "javascript single thread"
Mahe
05 Oct 2020
1Javascript is a single threaded language. This means it has one call stack and one memory 
2heap. As expected, it executes code in order and must finish executing a piece code before 
3moving onto the next. It's synchronous, but at times that can be harmful. For example, if a
4function takes awhile to execute or has to wait on something, it freezes everything up in the
5meanwhile.