DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
todashcase javascript
let str = "Sample text"; let str2 = str.replace(/[" "]/g,"-"); console.log(str2); // Sample-text
Source by gist.github.com #
PREVIOUS
NEXT
Tagged:
#todashcase
#javascript
ADD COMMENT
Topic
COMMENT
Name
9+9 =
Submit