Tell us what’s happening:
Your code so far
var called = 0;
var hash = (string) => {
called++;
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:
https://learn.freecodecamp.org/coding-interview-prep/data-structures/create-a-hash-table/