Created
March 8, 2017 10:33
-
-
Save cmilfont/09b0623feaa3b6caaf1a01914747e3d4 to your computer and use it in GitHub Desktop.
template literals
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 user = { | |
name: 'Christiano Milfont', | |
email: 'cmilfont@gmail.com', | |
}; | |
const template = '<div>' + user.name + ' - <span>' + user.email + '</span><div>'; |
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 user = { | |
name: 'Christiano Milfont', | |
email: 'cmilfont@gmail.com', | |
}; | |
const template = `<div>${user.name} - <span>${user.email}</span></div>`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment