Answers for "join text in js"

0

join text in js

const myText = "It is a long established fact that a reader will"
const newText = myText.split(" ").join("-")
console.log(newText);//It-is-a-long-established-fact-that-a-reader-will
Posted by: Guest on June-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language