Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

replace is not working in javascript

'123123'.replace('2', '4'); // 124123 <-- replace only first symbol '2'
'123123'.replaceAll('2', '4'); // 124124 <-- replace all symbols '2'
 
PREVIOUS NEXT
Tagged: #replace #working #javascript
ADD COMMENT
Topic
Name
7+4 =