0

Is there a way to switch and/or erase certain characters from string?

I know that it's possible with arrays, but I don't know how to do it with strings.

18th Jun 2018, 9:29 AM
Ivan
2 Réponses
+ 17
There are many methods you could use, like .replace()
18th Jun 2018, 9:37 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
... and remember than string are IMMUTABLE objects (you will create always a new string using these methods)
18th Jun 2018, 11:24 AM
KrOW
KrOW - avatar