Skip to content

Commit 3188176

Browse files
authored
Merge pull request #70 from otmon76/1.2.5
1.2.5
2 parents 6aa5018 + 060b177 commit 3188176

File tree

3 files changed

+133
-133
lines changed

3 files changed

+133
-133
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

2-
Backticks embed the expression inside `${...}` into the string.
2+
Obrácené čárky vkládají do řetězce hodnotu výrazu uvnitř `${...}`.
33

44
```js run
5-
let name = "Ilya";
5+
let jméno = "Ilja";
66

7-
// the expression is a number 1
8-
alert( `hello ${1}` ); // hello 1
7+
// výrazem je číslo 1
8+
alert( `ahoj ${1}` ); // ahoj 1
99

10-
// the expression is a string "name"
11-
alert( `hello ${"name"}` ); // hello name
10+
// výrazem je řetězec "jméno"
11+
alert( `ahoj ${"jméno"}` ); // ahoj jméno
1212

13-
// the expression is a variable, embed it
14-
alert( `hello ${name}` ); // hello Ilya
13+
// výrazem je proměnná, hodnota se vloží do řetězce
14+
alert( `ahoj ${jméno}` ); // ahoj Ilja
1515
```

1-js/02-first-steps/05-types/1-string-quotes/task.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ importance: 5
22

33
---
44

5-
# String quotes
5+
# Uvozovky řetězců
66

7-
What is the output of the script?
7+
Jaký je výstup tohoto skriptu?
88

99
```js
10-
let name = "Ilya";
10+
let jméno = "Ilja";
1111

12-
alert( `hello ${1}` ); // ?
12+
alert( `ahoj ${1}` ); // ?
1313

14-
alert( `hello ${"name"}` ); // ?
14+
alert( `ahoj ${"jméno"}` ); // ?
1515

16-
alert( `hello ${name}` ); // ?
16+
alert( `ahoj ${jméno}` ); // ?
1717
```

0 commit comments

Comments
 (0)