Partly Group interview question

How does JS compile, under the hood?