← Back to challenges

Buggy Code (Part 6)

JavaScriptHardstringsbugsinterviewformatting

Instructions

Mubashir wants to remove numbers from a given string!

Help him by fixing the code in the code tab to pass this challenge. Look at the examples below to get an idea of what the function should do.

Examples

removeNumbers("mubashir1") ➞ "mubashir"

removeNumbers("12ma23tt") ➞ "matt"

removeNumbers("s1a2m3p4l5e6") ➞ "sample"

Notes

  • READ EVERY WORD CAREFULLY, CHARACTER BY CHARACTER!
  • Don't overthink this challenge; it's not supposed to be hard.
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Find the Other Two Side Lengths