What is the JVM / heap / stack equivalent in JavaScript?

I am new to JavaScript. I'm used to Java, so I'm trying to map two worlds in horribly wrong ways.

Questions:

  • Each Java instance runs on the JVM. What is the JVM equivalent for JavaScript?

  • In Java, objects take up memory and memory is stored on the heap. Where are javascript objects stored? In other words, what is a bunch of JVM equivalent to JavaScript?

  • Each function call in Java adds a stack frame. Are JavaScript function calls being made (e.g. add stack)?
+4
source share
1 answer

Java ECMAScript , . JLS ( Java) , "" "", ECMAScript .

ECMAScript , , , , (), .

ECMAScript "JavaScript Engine" . , ""; window . , " ".

, ( ) , . , , "" "", / ; "" "" ( ) .

, .

ECMAScript, . .

+4

Source: https://habr.com/ru/post/1529885/


All Articles