¡@

Home 

javascript Programming Glossary: goat

Replace multiple strings with multiple other strings

http://stackoverflow.com/questions/15604140/replace-multiple-strings-with-multiple-other-strings

other words. The string is I have a cat a dog and a goat. However this does not produce I have a dog a goat and a cat.. and a goat. However this does not produce I have a dog a goat and a cat but instead it produces I have a cat a cat and a cat.. result will be produced var str I have a cat a dog and a goat. str str.replace cat gi dog str str.replace dog gi goat str..