Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
165 Questions103.9k Views7.0k Upvotes
41 easy77 med47 hard
Easy
1 questionMedium
3 questionsHow does WeakMap allow garbage collection of keys?
Frontend ยท 1.1k views ยท weakmap, garbage-collection, memory
Views:1.1kLikes:35
What is event delegation?
Frontend ยท 814 views ยท event-delegation
Views:814Likes:39
Why would you choose a WeakSet over a Set to track a group of DOM elements, and what happens to its entries once those elements are removed?
Frontend ยท 352 views ยท weakset, tricky, real-world
Views:352Likes:63
Hard
3 questionsHow would you make a custom class iterable with for...of by implementing Symbol.iterator as a generator method?
DSA ยท 936 views ยท iterators, tricky, real-world
Views:936Likes:11
What are WeakMap and WeakSet?
Frontend ยท 211 views ยท weakmap
Views:211Likes:62
What problem do WeakRef and FinalizationRegistry solve, and why should they be used carefully?
DSA ยท 126 views ยท weakref, finalizationregistry, garbage-collection
Views:126Likes:23
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question