What is a Hash?
What is a Hash?
Section titled “What is a Hash?”A hash is a technique that converts a key into an index using a hash function.
Goal: fast lookup (O(1) average)
Concept
Section titled “Concept”key ’ hash function ’ index ’ valueExample idea:
"apple" ’ hash ’ bucket[5]You dont compute this manually in JS Map, Set, and objects handle it internally.