Check Anagram
STRING
Problem
Create a function that checks if two given strings are anagrams of each other.
An anagram is a rearrangement of the letters of one word to form another word, using all original letters exactly once.
Return true
if the second string is an anagram of the first string; otherwise, return false
.
Examples
isAnagram("listen", "silent") // true isAnagram("hello", "bello") // false isAnagram("act", "cat") // true
Loading...