Question: Java Script 1a. b. c. d. Write a function named anagramS that accepts two string paramters and returns true if the second string is an
Java Script
1a.

b.

c.

d.

Write a function named anagramS that accepts two string paramters and returns true if the second string is an anagram of the first. A string is an anagram of another string if both strings contain the same characters (ignoring case and non-alphabetic characters) For example, the call of anagrams ("A decimal point". "I'm a dot in place!") should return true since both strings contain the same letters However, the call anagr ams("Decimal point", "I'm a dot in place!") should return false because even though both strings contain the same letters, the second string has one more "a" than the first string Write a function named countWords that accepts a string as its parameter and returns the number of words in it. A word is a sequence of one or more non- space characters. For example, the call of countWords ("What is your name?") should return 4 Write a function named isVowel that returns whether a string is a vowel (a single-letter string containing a, e, i, o, or u, case-insensitively)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
