Question: B) Write a function named makesentence that accepts an array of words, and returns a sentence made from the words. Review the Array join method
B) Write a function named makesentence that accepts an array of words, and returns a sentence made from the words. Review the Array join method in our class notes to see how this problem can be solved in one line of code. Use arrow function syntax. Examples: > makesentence(I "When", "I", was", "your", "age", "television", "was", "called", "books" 1) "When I was your age television was called books" > makesentence (getwords ( 'alpha bravo)) > "alpha bravo" C) Write a function named isvowe1 that accepts a character and returns true if the character a vowel, false otherwise. Use a Regexp to solve this problem, and arrow function syntax Examples: il true isvowel(e) s Ealse isVowel( 7') > false isvowel 'n //false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
