Skip to content

Instantly share code, notes, and snippets.

@CodHeK
Last active August 16, 2018 11:53
Show Gist options
  • Save CodHeK/390fffb9c9e1590856ac2a22344223ec to your computer and use it in GitHub Desktop.
Save CodHeK/390fffb9c9e1590856ac2a22344223ec to your computer and use it in GitHub Desktop.
template literals
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