Created
January 6, 2019 18:01
-
-
Save oliversd/3f2001127d5559e637b1d6cad1c3ba34 to your computer and use it in GitHub Desktop.
Template literals multiline demo
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
let name='Mike'; | |
let age=30; | |
let country='Italy'; | |
console.log(`${name} is | |
${age} years old and | |
lives in ${country} | |
`); | |
// Mike is | |
// 30 years old and | |
// lives in Italy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment