CC-08: String Mutation and Array Iteration
with Carmen Salas • 2024/10/16
Code Challenge
Declare a function called
stripUpperCase
that takes in a string argument consistenting of only alphabet characters and returns a new string with all uppercase letters removed. Note: You should not alter the input str, this function should return a new string.
Declare a function named
findLongestWord
, that takes an array of strings as an argument, and returns the longest string in the array. If there is more than one longest string, the function should return the first longest string that appears in the array. You must solve this without using any array methods.
Last updated