commit
5a1c12dd50
1 changed files with 3 additions and 3 deletions
|
@ -7,9 +7,9 @@ let name = "Ilya";
|
|||
// the expression is a number 1
|
||||
alert( `hello ${1}` ); // Hello, 1
|
||||
|
||||
// the expression is a variable, embed it
|
||||
alert( `hello ${name}` ); // Hello, Ilya
|
||||
|
||||
// the expression is a string "name"
|
||||
alert( `hello ${"name"}` ); // Hello, name
|
||||
|
||||
// the expression is a variable, embed it
|
||||
alert( `hello ${name}` ); // Hello, Ilya
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue