Is there another replace method? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there another replace method?

I know JavaScript has a replace method for strings and regular expressions, but does it have one for variables, numbers, and arrays? It doesn't seem of a programming language to be as non flexible as that

7th May 2018, 11:28 PM
jacksonofgames 28
jacksonofgames 28 - avatar
1 Answer
0
For arrays it does have one: splice()
26th May 2018, 9:55 AM
Sjoerd Flameling
Sjoerd Flameling - avatar