about | help | code help+videos | done | prefs |
Write a method that accepts an original string and a target string. If the target string appears at the beginning of the original string, return the original string with the target string removed; otherwise just return the original string. quizProg3P2("testing", "what a fun way to mess up") → "testing" quizProg3P2("the end", "the en") → "d" quizProg3P2("this is a test", "this") → " is a test" ...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: 299
Copyright Nick Parlante 2017 - privacy