Ad
Code
Diff
  • function count(string) {
      return (string.match(/a/gi) || []).length;
    }
    • function count(string) {
    • return (string.match(/a/gi) || []).length;
    • }