DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js string replaceall
// Chrome 85+
str
.
replaceAll
(
val
,
replace_val
)
;
// Older browsers
str
.
replace
(
/
val
/
g
,
replace_val
)
;
PREVIOUS
NEXT
Tagged:
#js
#string
#replaceall
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit