Partly Group Interview Question

How does JS compile, under the hood?