How JAVASCRIPT works in the BROWSER ?

Publicado el: 02 julio 2022
en el canal de: 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


En esta página del sitio puede ver el video en línea How JAVASCRIPT works in the BROWSER ? de Duración hora minuto segunda en buena calidad , que subió el usuario CodeOrigin AI 02 julio 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,809 veces y le gustó 38 a los espectadores. Disfruta viendo!