Answer the question
In order to leave comments, you need to log in
Why is there only one call stack in JS engines?
Because of this, as I understand it, JS is called a single-threaded language (Because the call stack of the engines is one, and it goes in order). Why didn't they do 2,3,4? What is the rationale for this?
On the Internet, I completely met such a sentence: "JavaScript has only one call stack, since it is a single-threaded language."
From which we can conclude that the number of stacks depends on the number of threads in the language - some kind of nonsense, I don’t I see. A language is a set of letters, what streams it can have.
ps Well, perhaps you will find some useful materials on this topic (On the deeper work of js engines), I will be glad to accept your links!
Answer the question
In order to leave comments, you need to log in
JavaScript has only one call stack, as it is a single-threaded language.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question