0

This is my string:

myStr = "this/is/foo/bar"

I want it to be

myStr = "thisisfoobar"

But this attempt only removes the first /

myStr.replace("/", "");

How do you get it to replace all of them?

torbenrudgaard
  • 2,375
  • 7
  • 32
  • 53

0 Answers0