Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx
33
var assert = require('assert');
function isAnagram(str1, str2) {
// fill this in
return true;
}
try {
assert.equal(isAnagram('Mary', 'Army'), true);
console.log('PASSED: ' + "`isAnagram('Mary', 'Army')` should return true");
} catch (err) {
console.log(err);
}
try {
assert.equal(isAnagram('cinema', 'iceman'), true);
console.log(
'PASSED: ' + "`isAnagram('cinema', 'iceman')` should return true"
);
} catch (err) {
console.log(err);
}
try {
assert.equal(isAnagram('jake', 'jay'), false);
OUTPUT
Results will appear here.