Question: please only use javascrpit Given two strings, write a function to determine if there is a word-anagram relationship between the two inputs. An anagram is
Given two strings, write a function to determine if there is a word-anagram relationship between the two inputs. An anagram is a word made by transposing the letters of another word. In other words, an anagram is a word formed by rearranging the letters of another word. Task Write out a function, isAnagram(s, t). For input, you will be given a string referenced as s and a string referenced as t. For output, you will return a boolean. Return true if t is an anagram of s. Otherwise, return the false value. We recommend that you compose an object(s) which is/are composed of the keys and values that reflect the letters found in the word(s) and the corresponding frequencies of those respective letters. This is only a suggestion, however, as there exist multiple ways to approach this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
