Answers for "count number of occurence of each character in a given string and print the ones that occur more thsn once in javascript"

16

javascript count occurrences of letter in string

function count(str, find) {
    return (str.split(find)).length - 1;
}

count("Good", "o"); // 2
Posted by: Guest on May-31-2021

Code answers related to "count number of occurence of each character in a given string and print the ones that occur more thsn once in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language