about | help | code help+videos | done | prefs |
Write a method called splitStrings that gets an array of Strings as an input parameter and returns a new array of Strings. The method splits every String in half and creates two Strings. For example splitStrings({"hello", "dog", ""}) would return the array {"he", "llo", "d", "og", "", ""}. splitStrings(["hello", "dog", ""]) → ["he", "llo", "d", "og", "", ""] splitStrings(["good", "AP"]) → ["go", "od", "A", "P"] splitStrings(["summer!"]) → ["sum", "mer!"] ...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
Copyright Nick Parlante 2017 - privacy