+ 3

How many characters are in a String

How would one find HOW MANY times a character shows up in a string in Javascript?

23rd Mar 2018, 1:10 AM
Leroy Jenkins
Leroy Jenkins - avatar
2 Answers
+ 4
var str = "test"; var len = str.length;
23rd Mar 2018, 1:38 AM
John Wells
John Wells - avatar