Answers for "override spaces with dash in string"

0

replace spaces with dashes

const text = "codetogo saved me tons of time";

text.replace(/ /g, "-");
Posted by: Guest on October-20-2021

Code answers related to "override spaces with dash in string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language