about | help | code help+videos | done | prefs |
Given start and end numbers, return a new array of Strings containing the sequence of integers from start up to but not including last where the word "odd" replaces every odd number, so start=5 and last=10 yields {"odd", "6", "odd", "8", "odd"}. If there is nothing in the array, return null. (See also: FizzBuzz Code) fizzOdds(5, 10) → ["odd", "6", "odd", "8", "odd"] fizzOdds(11, 18) → ["odd", "12", "odd", "14", "odd", "16", "odd"] fizzOdds(2, 5) → ["2", "odd", "4"] ...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: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy