• TypeScript problem

Question related to mission Popular Words

 

checking my result has a layout problem

my representation of the solution dictionary is a map<string,number>

I can not find a data structure with de correct checking layout tried result = {} result[word] = count but Typescript doesnot allows this.