1(A)Consider the following sentence: “I have had so manystrawberries for breakfast today.” Write a function that willoutput how many plural words are in any given sentence.
Example: var sentence = “I have had so many strawberries forbreakfast today.”
Plural(sentence) 1
1(B) Write a function that can tell whether numbers in a listare prime or not. The function should output an array that holdsthe values for if that number in the input array was prime ornot.
Example:
var myArray = [1, 2, 3, 4, 5]
Prime(myArray) è [false, true, true, false, true]
Expert Answer
An answer will be send to you shortly. . . .
PayPal Gateway not configured
PayPal Gateway not configured