about | help | code help+videos | done | prefs |
countNames
Write a function countNames(words) that returns the number of capitalized names in the list of strings named words. For example, countNames(['Fili', 'Oin', 'Thorin', 'and', 'Bilbo', 'are', 'characters', 'in', 'a', 'book', 'by', 'Tolkien']) should return 5. countNames(['Patricia', 'Drew', 'Hank', 'and', 'Derick', 'sit', 'in', 'the', 'front', 'row']) → 4 countNames(['Accidental', 'capitalizations', 'matter', 'to', 'Captain', 'Capitalization', 'and', 'to', 'Miss', 'Manners']) → 5 countNames(['this', 'here', 'is', 'an', 'example', 'where', 'no', 'words', 'are', 'capitalized']) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy