Write aJavaScriptfunctionfthat takestwo strings as arguments check whether two strings are anagrams and returntrue of false. An
Fantastic news! We've Found the answer you've been seeking!
Question:
Write aJavaScriptfunctionfthat
takestwo strings as arguments
check whether two strings are anagrams
and
returntrue of false.
An anagram of a string is another string that contains same characters, only the order of characters can be different.
Examples
f(abcd, dabc)Expected true
f(abcd, abcc)Expectedfalse
Write a JavaScript program to read the input data, call the function f, and write the output data.
Posted Date: