about | help | code help+videos | done | prefs |
Given a String, str, extract the middle initial, if there is one, or return the String "none" if there is no middle initial. middleInitial("Elmer D. Fudd") → "D" middleInitial(" Martin L King") → "L" middleInitial("Dinah Shore") → "none" ...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: 150 Post-solution available
Copyright Nick Parlante 2017 - privacy