Q441. List down the collection of methods available on WeakSet
Below are the list of methods available on `WeakSet`, 1. `add(value)`: A new object is appended with the given value 2. `delete(value)`: Deletes the value from the collec...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (780 available).
Below are the list of methods available on `WeakSet`, 1. `add(value)`: A new object is appended with the given value 2. `delete(value)`: Deletes the value from the collec...
A `WeakMap` object is a collection of key/value pairs in which the keys are weakly referenced. In this case, keys must be objects and the values can be arbitrary values. ...
The main difference is that references to key objects in `Map` are strong while references to key objects in `WeakMap` are weak. i.e, A key object in `WeakMap` can be gar...
Below are the list of methods available on `WeakMap`, 1. `set(key, value)`: Sets the value for the key in the `WeakMap` object. Returns the `WeakMap` object. 2. `delete(k...
The `uneval()` is an builtin function which is used to create a string representation of the source code of an Object. It is a top-level function and is not associated wi...
The `encodeURI()` function is used to encode complete URI which has special characters except (, / ? : @ & = + $ #) characters. ```javascript var uri = "https://mozilla.o...
The `decodeURI()` function is used to decode a Uniform Resource Identifier (URI) previously created by `encodeURI()`. ```javascript var uri = "https://mozilla.org/?x=шелл...
The `window` object provides a `print()` method which is used to print the contents of the current window. It opens a Print dialog box which lets you choose between vario...
The `uneval` function returns the source of a given object; whereas the `eval` function does the opposite, by evaluating that source code in a different memory area. Let'...
An anonymous function is a function without a name! Anonymous functions are commonly assigned to a variable name or used as a callback function. The syntax would be as be...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.