Hash Table - 401-advanced-javascript-v/seattle-javascript-401d29 GitHub Wiki
Hashtables are a data structure that utilize key value pairs. This means every Node or Bucket has both a key, and a value.
A hash is the ability to encode the key that will eventually map to a specific location in the data structure that we can look at directly to retrieve the value.
Hash maps do this to store values:
accept a key
calculate the hash of the key
use modulus to convert the hash into an array index
store the key with the value by appending both to the end of a linked list
Hash maps do this to read value:
accept a key
calculate the hash of the key
use modulus to convert the hash into an array index
use the array index to access the short LinkedList representing a bucket
search through the bucket looking for a node with a key/value pair that matches the key you were given