Anagram check
EasyStrings · JavaScript
The task
Write isAnagram(a, b) that returns true if b can be made by rearranging the letters of a.
Ignore case. Both strings contain only letters.
Examples
- isAnagram("listen", "silent") returns true
Your code runs in your browser, in a separate worker, and is never sent to us. Edit the function, then press Run tests. Your work is saved here as you type.
JavaScriptCtrl or Cmd + Enter to run