/anagram

Primary LanguageJavaScript

Anagram Checker

Return true if the two given strings are anagrams. Otherwise, return false.

A word is an anagram of another word if both use the same letters in the same quantity, but arranged differently.

For example:

  • friend and Finder are anagrams.
  • The Morse Code and Here come dots are anagrams as well.

Note: You'll need to remove all non-alphanumeric characters (punctuation, spaces and symbols) and turn everything into the same case (lower or upper case) in order to check for anagrams.

Submit a pull request to the main branch with your solution. Do not modify the tests. Once you have created a PR with passing tests, then you have successfully completed the exercise.

Troubleshooting

If you cannot see any auto-grading workflows on the Actions page, learn how to fix it in this repo.