Exercise 8 · Chapter: ObjectsOptional+50 XP
Letter Frequency
Read a word from input. Count how many times each letter appears and print each letter with its count, sorted alphabetically.
Example: for hello:
e: 1 h: 1 l: 2 o: 1
Need a hint?
3 available · costs 5 XP each
javascript
Output
Run your code to see the output here.