7 kyu

Count strings in objects

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

Stats:

CreatedNov 29, 2015
PublishedNov 29, 2015
Warriors Trained9444
Total Skips100
Total Code Submissions53615
Total Times Completed6791
JavaScript Completions6791
Total Stars87
% of votes with a positive feedback rating89% of 376
Total "Very Satisfied" Votes312
Total "Somewhat Satisfied" Votes48
Total "Not Satisfied" Votes16
Ad
Contributors
  • franzmoro88 Avatar
  • smile67 Avatar
  • Chrono79 Avatar
Ad