Strings

Count Repeated Text

Count Repeated Text

MediumStringsPRO

Count JavaScript string matches by finding non-overlapping term occurrences while ignoring case. This medium exercise focuses on normalizing inputs, handling empty search terms, and returning a count instead of a boolean.

What you'll practice

  • Count JavaScript string matches by finding non-overlapping term occurrences while ignoring case
  • Normalizing inputs
  • Handling empty search terms
  • Returning a count instead of a boolean

Unlock full access

Choose a plan and go straight to secure checkout.

  • All 600+ interactive exercises
  • Full course curriculum
  • Access to guided projects
  • All future content included

Secure checkout with Stripe. Cancel anytime.