A good start to writing the class is to initialize it with just the bare minimums. We need a storage array, so let's start there:
1class Hashmap {
2 constructor() {
3 this._storage = [];
4 }
5}
A good start to writing the class is to initialize it with just the bare minimums. We need a storage array, so let's start there:
1class Hashmap {
2 constructor() {
3 this._storage = [];
4 }
5}