Answers for "split text and join in js"

0

split text and join 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