Answers for "replace all strings from array in a string js"

0

javascript replace all string

// String.prototype.replaceAll(searchValue, replaceValue)

'x'.replace('', '_');
// → '_x'

'xxx'.replace(/(?:)/g, '_');
// → '_x_x_x_'

'xxx'.replaceAll('', '_');
// → '_x_x_x_'
Posted by: Guest on June-25-2021

Code answers related to "replace all strings from array in a string js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language