Node.js · Middle · Question 7 of 75

Which of these can block the event loop?

Explanation

Waiting for the network or disk does not block the loop. Large synchronous operations do: big JSON.parse/stringify, sorting huge arrays, complex regex, sync crypto.

Further reading

Problem with a question

Node.js · Middle · question 7

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz