about | help | code help+videos | done | prefs |
middleChar
Given a String of at least 3 characters, return the middle character. If the String has an even number of characters, return the character closer to the end of the String. middleChar("cat") → "a" middleChar("penguin") → "g" middleChar("pigeon") → "e" ...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: 5
Copyright Nick Parlante 2017 - privacy