// Program that returns true if two strings are anagrams of one another

function isAnagram(firstStr, secondStr) {
	// lower case both strings to account for case insensitivity
	var a = firstStr.toLowerCase(),
		b = secondStr.toLowerCase();
}

// Program that returns true if two strings are anagrams of one another

function isAnagram(firstStr, secondStr) {
	// lower case both strings to account for case insensitivity
	var a = firstStr.toLowerCase(),
		b = secondStr.toLowerCase();

	// sort strings and join each resulting array to a string
	a = a.split("").sort().join("");
	b = b.split("").sort().join("");
}

Sort strings and join each resulting array to a string
Sort strings and join each resulting array to a string
