Javascript program to find number of occurrences of a character in a string

Published --