This time, we’ll be solving Chunkey Monkey! We’ll have to write a function that takes an array and a number. The function must split the array in chunks the length of the second argument, and […]
FCC Bonfire Series 111: Truncate a String
Today, we’ll be solving the truncate a string bonfire. In this exercise, we are asked to write a function that takes two arguments: a string of any length, and the maximum number of characters that […]
FCC Bonfire Series 110: Repeat a string repeat a string
The challenge this time will have us write a function that takes two arguments, a string and a number. The function should return a single string that contains the original string, repeated the number of […]
FCC Bonfire Series 109: Confirm the Ending
Todays challenge is easy: we must write a function that takes in two arguments. We must check if the first string ends with the given second string. Let me illustrate with an example: end(“Gorka Hernandez”, […]
FCC Bonfire Series 108: Return Largest Numbers in Arrays
Arrays everywhere! Why?! Well, arrays are pretty useful actually. In any case, today’s exercise, largest numbers in arrays, will require some more array intricacies in order to write a function that takesĀ an array with several […]