Last active
March 11, 2021 17:34
-
-
Save NovoManu/8af41ecc9d71ea010cd5297ecf1d5419 to your computer and use it in GitHub Desktop.
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 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