How JAVASCRIPT works in the BROWSER ?

Veröffentlicht am: 02 Juli 2022
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video How JAVASCRIPT works in the BROWSER ? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer CodeOrigin AI 02 Juli 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,809 Mal angesehen und es wurde von 38 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!