We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42bea95 commit 776bad4Copy full SHA for 776bad4
exercises/randomizer.js
@@ -33,7 +33,7 @@ function randomWords(count, options) {
33
var result = loremIpsum().split(' ').slice(0, count)
34
if (options.capitalized) {
35
result = result.map(function(word) {
36
- word[0] = word[0].toUpperCase()
+ word = word[0].toUpperCase() + word.subString(0)
37
return word
38
})
39
}
0 commit comments