about | help | code help+videos | done | prefs |
Add a period to the end of the String if it doesn't end with a period or exclamation mark. ensurePeriodAtEnd("Hi") → "Hi." ensurePeriodAtEnd("Hi!") → "Hi!" ensurePeriodAtEnd("Hi.") → "Hi." ...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