export function isAnagram(word1, word2) { if (word1.length !== word2.length) { return false; } if (word1.length === word2.length) { return true; } }