dev-resources.site
for different kinds of informations.
What are Proxies in JavaScript, and how are they used?
Published at
1/13/2025
Categories
Author
Anjali Gurjar
Categories
1 categories in total
open
A Proxy in JavaScript is an object that wraps another object (called the target) and intercepts operations performed on the target, such as property access, assignment, function invocation, and more. Proxies allow you to define custom behavior for fundamental operations on objects.
What are WeakMaps and WeakSets in JavaScript?
Answer:
WeakMap: A collection of key-value pairs where the keys must be objects and the values can be arbitrary values. The keys in WeakMap are held weakly, meaning they do not prevent garbage collection.
WeakSet: A collection of objects, held weakly. Objects in a WeakSet can be garbage-collected if there are no other references to them.
Articles
12 articles in total
Entity and Relationship
read article
What is TCO
read article
What are Proxies in JavaScript, and how are they used?
currently reading
JavaScript Memory Management Interview Questions
read article
What is Event and syncthetic event in React
read article
could We use async and await with forEach in js
read article
Mongoose Query Question
read article
SQl Query
read article
Mongoose query
read article
How to handle concurency in. Node js
read article
Read stream Write Stream Work together use(Pipe)
read article
out put {"abc":2,"pqr":1}
read article
Featured ones: