about | help | code help+videos | done | prefs |
Write a method that accepts an array of integers that only contains the numbers 0, 1, 2, or 3 in any order and any amount. Return a string made up of the words for each of the number in the same order they appear in the array. Put a space between each word and after the last word. If there are no numbers in the array, return an empty string. owlSayNum([2, 2, 0, 1]) → "two two zero one " owlSayNum([3]) → "three " owlSayNum([]) → "" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy