Last active
August 16, 2018 11:53
-
-
Save CodHeK/390fffb9c9e1590856ac2a22344223ec 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
let ss = "hey | |
this is not correct"; //error | |
let ss = `hey | |
i can write like this!` | |
//prints | |
//"hey | |
//i can write like this!" | |
let name = "Gagan" | |
let ss = `hey! ${name} | |
how are you?` | |
//prints | |
//"hey! Gagan | |
//how are you?" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment