Problem 27

Capitalize words in array Recursion Challenge

Given an array of strings, return a new array where every string is fully uppercased.

Function Signature

capitalizeWords(array)

Parameters

  • array — an array of strings.

Output

Return an array of strings with all characters converted to uppercase.

Constraints

  • The function must use recursion.
  • The function should accept exactly one argument.

Examples

capitalizeWords(['i', 'am', 'learning', 'recursion'])
→ ['I', 'AM', 'LEARNING', 'RECURSION']

capitalizeWords(["ceci", "n'est", "pas", "une", "pipe"])
→ ["CECI", "N'EST", "PAS", "UNE", "PIPE"]