7 kyu
Count strings in objects
6,791franzmoro88
Description:
Create a function strCount (takes an object as argument) that will count all string values inside an object. For example:
strCount({
first: "1",
second: "2",
third: false,
fourth: ["anytime",2,3,4],
fifth: null
})
//returns 3
Strings
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Nov 29, 2015 |
Published | Nov 29, 2015 |
Warriors Trained | 9444 |
Total Skips | 100 |
Total Code Submissions | 53615 |
Total Times Completed | 6791 |
JavaScript Completions | 6791 |
Total Stars | 87 |
% of votes with a positive feedback rating | 89% of 376 |
Total "Very Satisfied" Votes | 312 |
Total "Somewhat Satisfied" Votes | 48 |
Total "Not Satisfied" Votes | 16 |