How to write a HashTable Class in JavaScript

  • each value needs a unique/hashed identifier → needs a key
  • must be able to set values to keys
  • must be able to get value when the key is called
  • must be able to see all keys returned as an array

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store