10. Check Anagrams
Lesson 11 of 31 in Coddy's 30 Days of Logic Building in Javascript course.
Challenge
EasyWrite a function to check if two strings are anagrams of each other.
An anagram is a word or phrase formed by rearranging the letters of a different word or phrase
- Input:
<strong>"listen"</strong>,<strong>"silent"</strong> - Output:
<strong>true</strong>
Try it yourself
function areAnagrams(str1, str2) {
// write your code below
}All lessons in 30 Days of Logic Building in Javascript
1Introduction
What is here for you?