KjeldsenCorneliussen6686 | 2022.01.17 13:28 | 조회 5
1. JavaScript Engine According to Wikipedia

A JavaScript engine is a program or interpreter which executes JavaScript code.

To put it simply: JS engine is a program or interpreter that executes JS code. A JS engine can interpret as usual, or just-in-time compile from JS into bytecode.

Here are some famous JS engines:

SpiderMonkey - The ancestor of the JS engine, used on the world's first web browser - Netscape Navigator, currently being used on Firefox
Chakra - An old JS engine, originally used on Internet Explorer and compiled JScript, now used for Microsoft Edge
Rhino - An Engine written entirely in Java, also with a long history from Netscape Navigator, currently developed by the Mozilla Foundation
Google V8 - The most popular JS engine today, used on Chrome browser and NodeJS core

Engine includes 2 main components:

Memory Heap
Call Stack

2. Runtime
JS Runtime provides APIs for

3. Call Stack
JS is a single-threaded programming language, which means it has only 1 Call Stack. Therefore, at a time, JS only executes a single job.

The Call Stack is a data structure that stores the execution of the program. If a function is called, it is placed at the top of the stack. If a function terminates and returns a value, it will be removed from the stack. Each record in the Call Stack is called a Stack Frame.

When the above code is executed, it will call the function foo(). developer ebook download calls itself many times and has no stopping condition. With each execution step, a Stack Frame is added to the Call Stack. We will be met with the legendary stack overflow error

At that time, the browser will report an error

Executing single-threaded code can be very easy because you don't have to deal with complex situations like when dealing with multi-threaded environments, such as deadlocks. So what happens when a block of commands is processed too slowly?
share document
twitter facebook me2day 요즘
번호 제목 글쓴이 조회 날짜
1358746 Who Else Wants To Know The Secrets To Wi ErikssonRitter0336 2 2022.04.22 07:25
1358745 Pomoce I Materiały Wykazały Się Miłe? CombsLindsay2888 2 2022.04.22 07:25
1358744 Catering Provides & Gear MilesOneil9177 5 2022.04.22 07:24
1358743 Elemen Kemenangan Dalam Taruhan Sabung a VinsonLeach0063 2 2022.04.22 07:24
1358742 Zaświadczenie O Nieistnieniu W Podatkach FarrellDemir1110 1 2022.04.22 07:24
1358741 Soccer Picks: How Can You Make Them More MorrisManning6434 1 2022.04.22 07:24
1358740 Caffeine is made of a small bean. Only o FriisThestrup3410 2 2022.04.22 07:24
1358739 Are you considering learning more about KronborgJustice6233 2 2022.04.22 07:24
1358738 Goal Setting And Your Reticular Activati BuggeRoberson7582 2 2022.04.22 07:24
1358737 ZUS Zwolnienie Z Decyzji Lekarza Orzeczn GillespieRodriguez7779 2 2022.04.22 07:23
1358736 Ceritfied Green Carpet Cleansing CassidyPallesen8378 3 2022.04.22 07:23
1358735 Water lines Repair: Things To be able to PowellRalston7337 2 2022.04.22 07:23
1358734 Gps Sport Watch - Take Your Training Sev LaustenDam3406 2 2022.04.22 07:23
1358733 Examine In China McKnightHumphrey5744 2 2022.04.22 07:23
1358732 metode aman dalam judi slots online JohanssonBowen7602 2 2022.04.22 07:23
1358731 Taiwan Avenue Food Bucket List RiosHamilton1171 3 2022.04.22 07:23
1358730 Good Suggestions To Use When You Want Sp CrowellLiu2354 3 2022.04.22 07:23
1358729 Expliquer simplement acheter des followe McManusKidd5407 2 2022.04.22 07:23
1358728 Three Crucial Tips For Winning At Soccer MejiaMccray7410 2 2022.04.22 07:22
1358727 Zoom sur acheter des followers acheter d LeachChristoffersen2952 3 2022.04.22 07:22