7 kyu
Count strings in objects
6,817franzmoro88
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 | 9489 |
Total Skips | 101 |
Total Code Submissions | 53808 |
Total Times Completed | 6817 |
JavaScript Completions | 6817 |
Total Stars | 88 |
% of votes with a positive feedback rating | 89% of 378 |
Total "Very Satisfied" Votes | 314 |
Total "Somewhat Satisfied" Votes | 48 |
Total "Not Satisfied" Votes | 16 |