When javascript is run in a browser
alert('Hello World');
What environment executes it and manages it in memory?
I know this is vaugue! But thats the best place to start!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This depends on the browser, The JavaScript engine, and what you mean by ‘executes it’
There is not much of an answer to give.
Look at some JavaScript engine’s architectures …
http://www.mozilla.org/js/spidermonkey/
http://code.google.com/p/v8/
If you want to explore deeper, maybe read the first few chapters of the Dragon Book to learn a bit about how programs are interpreted and/or compiled to some intermediate or bytecode form.
Good Luck