Strings

Split on the Last Marker

Split on the Last Marker

MediumStringsPRO

Practice JavaScript string indexing by splitting a filename on its final dot instead of the first one. This medium exercise focuses on last-marker logic, object-shaped return values, and the no-extension case without giving away the exact slices.

What you'll practice

  • Work with JavaScript string indexing by splitting a filename on its final dot instead of the first one
  • Last-marker logic
  • Object-shaped return values
  • The no-extension case without giving away the exact slices

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.