UKG interview question

How does javascript engine works