Siemens Interview Question

How does the Javascript engine works.