Hitung karakter dalam string, JS
"this is foo bar".split("o").length - 1;
// returns 2
Homely Heron
"this is foo bar".split("o").length - 1;
// returns 2
var str = "Hello World!";
var n = str.length;