Apple Interview Question

How does javascript simulate parallelism?