If you have been using Javascript for a while then you may come across the phrase that it’s a single threaded language.
What does that means?
Javascript engine runs on a V8 engine that has a memory heap and a call stack.
JS is a single threaded which means only one statement is executed at a time.
Before we dive into what it means by it runs on single thread. I would want to first go over the terminology that will help you in understanding.
My attempt will be to explain in the simplest manner possible. To understand this better you need to know a Data Structure known as Stack (Last In, First Out).

#javascript #asynchronous

What Does it Mean by Javascript is Single Threaded Language
1.40 GEEK