Last active
December 1, 2018 18:47
-
-
Save chris-sev/7be587f89ba2ee18f105a57a791a2c18 to your computer and use it in GitHub Desktop.
Replace One Instance
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
const myMessage = 'this is the sentence to end all sentences'; | |
const newMessage = myMessage.replace('sentence', 'message'); | |
console.log(newMessage); // this is the message to end all sentences |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment