Question · JavaScript and TypeScript course · Module 10: TypeScript in Practice
WeakRef and FinalizationRegistry
What is WeakRef used for in JavaScript?
Answer options
- For compressing objects in memory
- For creating permanent references to objects
- For creating weak references that do not prevent garbage collection
- For encrypting data in memory
You can check the correct answer by solving this task in the CodeWorlds game.