DEV Community


Discussion on: Anagrams in JavaScript(simple)

ceyhunkerti profile image
Ceyhun Kerti

Nice and elegant, anagrams always remind me this scene

and here is the hard question: do anagrams have to be real words ?

tadea profile image
Tadea Simunovic Author

I love that movie!
No, they don't have to be real words, the point is to contain the same characters that repeat the same number of times.