Skip to content

Commit 30b0d42

Browse files
authored
Translated solution.md
1 parent e788a87 commit 30b0d42

File tree

1 file changed

+7
-7
lines changed
  • 1-js/02-first-steps/05-types/1-string-quotes

1 file changed

+7
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

2-
Backticks embed the expression inside `${...}` into the string.
2+
Atvirkštinės kabutės įterpia išraišką esančią viduje `${...}` į pačią eilutę.
33

44
```js run
55
let name = "Ilya";
66

7-
// the expression is a number 1
8-
alert( `hello ${1}` ); // hello 1
7+
// išraiška yra skaičius 1
8+
alert( `labas ${1}` ); // labas 1
99

10-
// the expression is a string "name"
11-
alert( `hello ${"name"}` ); // hello name
10+
// išraiška yra eilutė "name"
11+
alert( `labas ${"name"}` ); // labas name
1212

13-
// the expression is a variable, embed it
14-
alert( `hello ${name}` ); // hello Ilya
13+
// išraiška yra kintamasis, jo vertė įterpiama
14+
alert( `labas ${name}` ); // labas Ilya
1515
```

0 commit comments

Comments
 (0)