Answers for "replace is not working in javascript"

0

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'
Posted by: Guest on April-10-2022

Code answers related to "replace is not working in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language