DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to replace all characters in a string javascript
const
string
=
"a, b, c, d, e, f"
;
string
.
replace
(
/
,
/
g
,
''
)
;
console
.
log
(
string
)
//a b c d e f
PREVIOUS
NEXT
Tagged:
#replace
#characters
#string
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit