UKG Interview Question

How does javascript engine works