Skip to content
12 changes: 6 additions & 6 deletions 1-js/02-first-steps/05-types/1-string-quotes/solution.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

Backticks embed the expression inside `${...}` into the string.
Թեք չակերտները ներառում են `${...}`-ի մեջ գրված արտահայտության արդյունքը տողի մեջ։

```js run
let name = "Ilya";
let name = "David";

// the expression is a number 1
// արտահայտությունը 1 թիվն է
alert( `hello ${1}` ); // hello 1

// the expression is a string "name"
// արտահայտությունը "name" տողն է
alert( `hello ${"name"}` ); // hello name

// the expression is a variable, embed it
alert( `hello ${name}` ); // hello Ilya
// արտահայտությունը փոփոխական, ներդնենք այն
alert( `hello ${name}` ); // hello David
```
8 changes: 4 additions & 4 deletions 1-js/02-first-steps/05-types/1-string-quotes/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ importance: 5

---

# String quotes
# Տողի չակերտները

What is the output of the script?
Ինչպիսի՞ն կլինի սկրիպտի արտաբերած արդյունքը։

```js
let name = "Ilya";
let name = "David";

alert( `hello ${1}` ); // ?

alert( `hello ${"name"}` ); // ?

alert( `hello ${name}` ); // ?
```
```
Loading