privacy in IIFE vs Prototypes

Prototypes

In prototypes, we use function constructors to initiate.

Then we use prototypes to create one copy of functions to be shared by all instances of HashTable.

IIFE

If you want privacy, use IFEE and closure.