Sort letters so matching anagrams share a key. Goal: Turn letters into a stable key so words with the same letters can be grouped.
Find the representation that makes equal strings comparable.
Anagrams need a shared key even when the letters arrive in a different order.
Drag tokens into the blanks
1// Goal: Turn letters into a stable key so words with the same letters can be grouped.2function starterExample() {3const word = "tea";4 const key = word.split("").sort().___("");5}