Accept a string as parameter. Find out how many consonants present in it.

Test cases:

Test cases Expected Result
countConsonents(instanceof is for references only) –>[18] 18 OK
countConsonents(Object Oriented) –>[8] 8 OK
countConsonents(Design Patterns88) –>[10] 10 OK

Java solution:

Javascript solution:


About the author

Bushan Sirgur

Well, I am Bushan Sirgur from Banglore, India. Currently, I am working as a Software Developer in a Service Base Company. I am interested in JAVA/J2EE, Angular 2, JavaScript, jQuery, MongoDB.

View all posts

Leave a Reply

Your email address will not be published. Required fields are marked *