Created
August 22, 2015 14:48
-
-
Save AFelipeTrujillo/18cbea21a0c44c25177f to your computer and use it in GitHub Desktop.
How to create a Sprrint 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 text = 'Hello {first_name} {last_name}'; | |
var firstName = 'Felipe'; | |
var lastName = 'Trujillo'; | |
console.log(text.replace(/{first_name}/g, firstName).replace(/{last_name}/g),lastName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment