Skip to content

Commit 0cf671a

Browse files
committed
[Dictionaries and Hashes]
1 parent 4f488c6 commit 0cf671a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/chapter07/02-HashTable.js

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ const { HashTable } = PacktDataStructuresAlgorithms;
22

33
const hash = new HashTable();
44

5+
console.log(hash.hashCode('Gandalf') + ' - Gandalf');
6+
console.log(hash.hashCode('John') + ' - John');
7+
console.log(hash.hashCode('Tyrion') + ' - Tyrion');
8+
9+
console.log(' ');
10+
511
console.log(hash.hashCode('Ygritte') + ' - Ygritte');
612
console.log(hash.hashCode('Jonathan') + ' - Jonathan');
713
console.log(hash.hashCode('Jamie') + ' - Jamie');

0 commit comments

Comments
 (0)