const joinText = (string) => { const newText = string.replace(/ /g, ""); }; console.log(joinText("Hello World!")); //Hello World!