Hi,
Firstly, I am new to Javascript.
I need to count the number occurances of a character in a string.
Its something like suppose my string contains
var mainStr = "str1,str2,str3,str4";
My return value should be 3
I also need to validate that each of the strs i.e str1 or str2 or str3 or str4 should not exceed say 15 character.
Can someone please help me with this?
Thanks in Advance, Akash