Home / Anagram
Write a function that determines if the first and second parameter are an anagram of each other or not.
/**
* Determines if two values are anagrams of each other.
* An anagram is formed by rearranging the letters of one word to create another.
*
* @param {string} str1 - The first string to compare.
* @param {string} str2 - The second string to compare.
* @returns {boolean} True if the strings are anagrams, false otherwise.
*/
function areAnagrams(str1, str2) {
// ...
}
console.log()
the input.