Parameters: It takes parameters “key” which is the key of the element which is to set to the WeakMap object and parameter “value” is the value of the element to set to the WeakMap object.
Return value: It returns the WeakMap object.
Below are examples of weakMap.set() method.
GeeksForGeeks gfg GfG is a cse portal 12345 @#$% 1.34
- Google Chrome 36 and above
- Edge 12 and above
- Firefox 6 and above
- Internet Explorer 11 and above
- Opera 23 and above
- Safari 8 and above
Please Login to comment...