about | help | code help+videos | done | prefs |
getRidOfDashes
Write a function that returns the string that is surrounded by dashes. ( The input string is guaranteed to have: dashes, following a string, then more dashes) getRidOfDashes('----heh----') → 'heh' getRidOfDashes('-----whew------') → 'whew' getRidOfDashes('--nanananana-----') → 'nanananana' ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy