EraCode practice
Daily TS Text: Safe Prefix Stripping
TypeScriptintermediateMulti-Part
Summary
Practice a focused string/text task in TypeScript: understand how prefix checks narrow strings conceptually, then implement a tiny utility to strip an optional prefix.
Problem preview
### Goal Fill the single TODO to implement . - If starts with , return with that prefix removed. - Otherwise, return unchanged. - Assume case-sensitive matching (no extra normalization).
Attempt this challenge
Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.