Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is javascript runtime?

This question have been asked multiple times but I'm not able to understand it clearly.

As per the answers provided, JavaScript runtime means where our Javascript code is executed.

Concerning the definition of Node.js, it is an asynchronous javascript runtime, does this mean that inside Node.js Javascript is executed?

Also, does "Javascript runtime environment" mean the environment or the machine setup where Javascript code is executed?

like image 432
Siva Pradhan Avatar asked Sep 19 '25 10:09

Siva Pradhan


1 Answers

Whether it's running inside a web browser or outside of it, the JavaScript source code that you write is first "compiled" to an internal format (a data structure), and that is then "run" by the language interpreter – this is the "runtime environment." The programming that you write tells this interpreter what to do for you. All interpreted languages work in this way. With most languages there is more than one available implementation. Edwin's comment above leads to a list of the various interpreters that have been created for JavaScript.

like image 63
Mike Robinson Avatar answered Sep 22 '25 02:09

Mike Robinson