What is the use of a weakset object in javascript?



What is the use of a weakset object in javascript?..

Answer / Ravi Tiwari

The WeakSet object in JavaScript is a special type of set object that only holds weak references to its values. It is useful for storing objects without keeping a strong reference, which can help with memory management.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

Explain how can you submit a form using JavaScript?

1 Answers  


Why do we need hoisting in javascript?

1 Answers  


How can javascript be used to personalize or tailor a web site to fit individual users?

1 Answers  


What is the dollar sign in javascript?

1 Answers  


Why is currying called currying?

1 Answers  


what is onfocus and onblur events in java script?

2 Answers  


What is the use of a typedarray object in javascript?

1 Answers  


How to define a anonymous function?

1 Answers  


What is the best site to learn javascript?

1 Answers  


Public Static Void Main(String args[]) { System.out.in("Hai.."); } In the above code why string args[] is required.... If we are not giving command line argument..

1 Answers  


Do I need to install javascript?

1 Answers  


What are javascript functions?

1 Answers  


Categories