DEV Community

Discussion on: JavaScript Katas: Count the number of each character in a string

Collapse
 
benibela profile image
Benito van der Zander

Careful, the first for-loop does not work with emojis

Collapse
 
miku86 profile image
miku86

Hey Benito,

thanks for your answer!
Can you tell me which emojis you tested?

I added a test case to my playground and it seems to work.

Greetings
Michael

Collapse
 
benibela profile image
Benito van der Zander

just the first one I found 🤔

Thread Thread
 
miku86 profile image
miku86 • Edited

Alright!
I tried some different ones and found some, that result in a question mark.

So I researched the problem:

I just updated the post, thank you!