about | help | code help+videos | done | prefs |
The method pluralize will take a string array and add an "s" at the end of every word as long as it doesn't already have an s at the end.
pluralize(["a", "e", "i", "o", "u", "s"]) → ["as", "es", "is", "os", "us", "s"] pluralize(["Galisi", "Tan", "Comp Sci", "is fun"]) → ["Galisis", "Tans", "Comp Scis", "is funs"] pluralize(["hi", "bye"]) → ["his", "byes"] ...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 Post-solution available
Copyright Nick Parlante 2017 - privacy