'how to make testText to text text in typescript

this is my first question so if I make mistakes I'm really sorry

I have a variable called foo and it contains the string "helloWorld" is there any way to make it to "hello world" like how unity does with the variables in the script

Im using typescript btw

and Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source