Skip to content

Commit 9060908

Browse files
authored
Merge pull request #205 from corebranch/1.2.5
Data types
2 parents 1af4fef + aab31b2 commit 9060908

File tree

3 files changed

+117
-116
lines changed

3 files changed

+117
-116
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

2-
Backticks embed the expression inside `${...}` into the string.
2+
Tərs dırnaqlar (backticks: ``) `${...}` daxilində ifadəni mətnə yerləşdirir.
33

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

7-
// the expression is a number 1
8-
alert( `hello ${1}` ); // hello 1
7+
// İfadənin çıxışı bir rəqəmdir: 1
8+
alert( `salam ${1}` ); // salam 1
99

10-
// the expression is a string "name"
11-
alert( `hello ${"name"}` ); // hello name
10+
// İfadənin çıxışı bir mətndir: "ad"
11+
alert( `salam ${"ad"}` ); // salam ad
1212

13-
// the expression is a variable, embed it
14-
alert( `hello ${name}` ); // hello Ilya
13+
// İfadə dəyişən olduğundan, dəyişənin dəyəri istifadə olunacaq
14+
alert( `salam ${name}` ); // salam Ilya
1515
```

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

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

33
---
44

5-
# String quotes
5+
# String dırnaqları
66

7-
What is the output of the script?
7+
Skriptin nəticəsi nə olacaq?
88

99
```js
1010
let name = "Ilya";
1111

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

14-
alert( `hello ${"name"}` ); // ?
14+
alert( `salam ${"ad"}` ); // ?
1515

16-
alert( `hello ${name}` ); // ?
16+
alert( `salam ${name}` ); // ?
1717
```

0 commit comments

Comments
 (0)