Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace spaces with dashes

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

text.replace(/ /g, "-");
Source by codetogo.io #
 
PREVIOUS NEXT
Tagged: #replace #spaces #dashes
ADD COMMENT
Topic
Name
4+7 =