Pergunta de entrevista da empresa SmartNews

Explain JavaScript main thread and worker threads. How do you communicate between main thread and worker threads? How can worker threads impact main thread?