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 Trained9489
Total Skips101
Total Code Submissions53808
Total Times Completed6817
JavaScript Completions6817
Total Stars88
% of votes with a positive feedback rating89% of 378
Total "Very Satisfied" Votes314
Total "Somewhat Satisfied" Votes48
Total "Not Satisfied" Votes16
Ad
Contributors
  • franzmoro88 Avatar
  • smile67 Avatar
  • Chrono79 Avatar
Ad