JavaScript | Advanced JavaScript | Question 6

Last Updated :
Discuss
Comments

What is a key feature of WeakMap in JavaScript?

Keys must be strings.

Keys are weakly referenced and cannot be primitive values.

Values are immutable.

It supports iteration.

Share your thoughts in the comments