Create a Hash Table

Tell us what’s happening:

Your code so far

var called = 0;
var hash = (string) => {
  var hash = 0;
  for (var i = 0; i < string.length; i++) { hash += string.charCodeAt(i); }
  return hash;
var HashTable = function() {
  this.collection = {};
  // change code below this line
  // change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-J327T Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/7.4 Chrome/59.0.3071.125 Mobile Safari/537.36.

Link to the schallenge:

Do you have a question about the challenge?

A post was split to a new topic: Having trouble with Create a Hash Table challenge