+ 1
How can I convert my String in JS
Hey coders, I'm trying to add "+" sign instead of " " in any string Example: This is my text Output: This+is+my+text How can I do that in JS
5 Answers
+ 8
I understood your problem.For this purpose you can use replace method to replace space to `+`.
https://code.sololearn.com/WhyNs3erjae1/?ref=app
+ 2
"This is my text".split(" ").join("+")
+ 1
Are you saying about parsedatatype() which help we can convert any variable in there datatype ?
0
I want to learn
0
Solution of A͢J is valid too