Pregunta de entrevista de Apple

How does javascript simulate parallelism?