scrimba
Frontend Career Path
Getting hired
JavaScript Interview Challenges
Challenge: Is it an Anagram?
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Challenge: Is it an Anagram?
AboutCommentsNotes
Challenge: Is it an Anagram?
Expand for more info
index.js
run
preview
console
/* 

Anagrams are groups of words that can be spelled with the same letters.
For example, the letters in "pea" can be rearrange to spell "ape", and
the letters in "allergy" can be rearranged to spell "gallery."

Write a function to check if two strings of lowercase letters are anagrams.
Return true if the word is an anagram. Return false if it isn't.

Example input: "allergy", "gallery"
Example output: true

Example input: "rainbow", "crossbow"
Example output: false

*/

function isAnagram(str1, str2){

}

console.log(isAnagram("allergy", "gallery"));
console.log(isAnagram("treasure", "measure"));



Console
undefined
,
undefined
,
/index.html
-1:23