0

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!

2 Answers 2

4

The browser's javascript engine.

Here's a page that compares the performance of a bunch

Sign up to request clarification or add additional context in comments.

1 Comment

Link to an engine's c# bindings stackoverflow.com/questions/172753/…
3

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.