How JAVASCRIPT works in the BROWSER ?

Pubblicato il: 02 luglio 2022
sul canale di: CodeOrigin AI
1,809
38

This is how JavaScript works in browser

🤓 Whenever we run a JavaScript program inside a web browser, JavaScript code is received by the browser's engine and the engine runs the source code to obtain the output.

✨ In a standard JavaScript engine, the source code goes through several steps and gets executed.

Let us understand each of these steps in more detail 👇

👉Step 1: Parser

This is the first stage of the engine, every time we run a JavaScript program, our code is first received by the "parser" inside the JS engine. The parser's job is to check the JavaScript code for syntactic errors in line by line manner because JavaScript is an interpretive scripting language.

👉Step 2: AST

Once the parser checks all JavaScript codes and gets satisfied that there are no mistakes/errors in the code, it creates the data structure called AST (it stands for Abstract Syntax Tree).

👉Step 3: Conversion to Machine code

Once the Abstract Syntax Tree is created by the parser, the JavaScript engine converts the JavaScript code into the machine code (or in the language that machine can understand).

👉Step 4: Machine code

When the program written in the JavaScript gets converted in the machine language (or in byte code), the converted code is sent to the system for execution, and finally, that byte code run by the system/engine.


✅ Make sure to Subscribe our YouTube Channel for programming related content
   / @codeorigin-ai  


🔥 Also Follow us on Instagram
  / codeorigin.official  




javascript learning path 2022,
full stack javascript roadmap 2019,
learning roadmap javascript 2022,
2022 javascript roadmap,
complete course javascript,
my experience with javascript,
javascript frameworks ,
professional javascript,
web dev wednesday,
simplilearn javscript,
javascript discussion,
javascript prototypal inheritance ,
career in tech
freelance developer,
no cs degree,
self taught web developer,
coder ,Html ,
full stack developer,
web developer career,
web developer roadmap,
web dev roadmap,
front end web developer
learn in 2022, angular roadmap

#shorts #javascript #coding #programminglanguage #frontend #codeorigin #webdesign #learntocode #webdevelopment #frontenddeveloper


In questa pagina del sito puoi guardare il video online How JAVASCRIPT works in the BROWSER ? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CodeOrigin AI 02 luglio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,809 volte e gli è piaciuto 38 spettatori. Buona visione!