Question 24/24
advanced
Select one answer

What is the difference between WeakMap and Map?

WeakMap is slower than Map
WeakMap only allows objects as keys and doesn't prevent garbage collection
Map can only store strings as keys
They are identical

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.