- Write a function called
pallindrome?that returnstrueorfalse. The function should take one string parameter (word). Returntrueif word is equal to itself backwards. For example:palindrome?("the")should returnfalse.palindrome?("racecar")should return true. - Write a function called
anagrams?that returnstrueorfalse. The function should take two string parameters (word1, word2). Returntrueif word1 and word2 are anagrams of one another. An anagram of a word is another word that has the same letters in a different order. For example:anagrams?('god', 'dog')should return true.anagrams?('aabb', 'ab')should return false.
Created
August 10, 2015 14:48
-
-
Save zephyr-dev/a7158c15831e86ec226e to your computer and use it in GitHub Desktop.
Dakarai homework 3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment