Node.js · Senior · Question 8 of 75

What are WeakRef and FinalizationRegistry NOT good for?

Explanation

Garbage collection timing is not guaranteed, and finalizers may never run. Release resources explicitly with close() or using/Symbol.dispose.

Further reading

Problem with a question

Node.js · Senior · question 8

Test yourself

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

Take this quiz