Siemens interview question

How does the Javascript engine works.