about | help | code help+videos | done | prefs |
Write a method that returns the input parameter 'str' but with dashes at the front and back. For example, if 'str' is "Hello" you would return "-Hello-". Look at the test data for examples. practiceQuiz2023_09_05_APP1SLHL_dashes("this is a practice quiz") → "-this is a practice quiz-" practiceQuiz2023_09_05_APP1SLHL_dashes("Watts the units for power?") → "-Watts the units for power?-" practiceQuiz2023_09_05_APP1SLHL_dashes("") → "--" ...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