Apple interview question

How does javascript simulate parallelism?