Skip to content

Instantly share code, notes, and snippets.

@NovoManu
Last active March 11, 2021 17:34
Show Gist options
  • Save NovoManu/8af41ecc9d71ea010cd5297ecf1d5419 to your computer and use it in GitHub Desktop.
Save NovoManu/8af41ecc9d71ea010cd5297ecf1d5419 to your computer and use it in GitHub Desktop.
const hello = 'Hello'
const world = 'World'
console.log('Hello World') // expected output: Hello World
console.log(`Hello ${world}`) // expected output: Hello World
console.log(`${hello} World`) // expected output: Hello World
console.log(`${hello} ${world}`) // expected output: Hello World
for (let i=0; i<10; ++i) {
console.log(`Index is ${i}`) // dynamic output
}
const multiline = `
this is
multiline
`
console.log(multiline)
// expected output:
// this is
// multiline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment