JSFiddle - React, Tailwind, and code Playground
by Abdul Ahmad
JavaScript
function hash (s) {
var h = 7;
var letters = "acdegilmnoprstuw";
for(var i = 0; i < s.length; i++) {
h = (h * 37 + letters.indexOf(s[i]))
alert(h);
}
return h;
}
alert(hash('leepadg'));
function reverseHash(number) {
var h = number;
while(h > 7) {
}
}