In the final for loop and the console.log, you are calling string
instead of stringMap
It looks like you forgot to change it in your for …of loop as well. where it says in string, that should be in stringMap.
Thank u very much
It finally worked!