Create Empty Map let myMap = new Map<string, number>(); myMap.set('a', 1); myMap.set('b', 2); myMap.set('c', 3); console.log(myMap.get('a')); // expected output: 1 myMap.set('a', 97);