Last active
February 24, 2019 07:12
-
-
Save priesdelly/90e8977a1f7ac8d33ce7597e10535710 to your computer and use it in GitHub Desktop.
Replace string in javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var strText = 'Test Replace bear and duck and dog and cat'; | |
var strAfRep = strText.replace('and','or'); | |
console.log(strAfRep); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment