File tree Expand file tree Collapse file tree 3 files changed +117
-116
lines changed
1-js/02-first-steps/05-types Expand file tree Collapse file tree 3 files changed +117
-116
lines changed Original file line number Diff line number Diff line change 1
1
2
- Backticks embed the expression inside ` ${...} ` into the string .
2
+ Tərs dırnaqlar (backticks: ``) ` ${...} ` daxilində ifadəni mətnə yerləşdirir .
3
3
4
4
``` js run
5
5
let name = " Ilya" ;
6
6
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
9
9
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
12
12
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
15
15
```
Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ importance: 5
2
2
3
3
---
4
4
5
- # String quotes
5
+ # String dırnaqları
6
6
7
- What is the output of the script ?
7
+ Skriptin nəticəsi nə olacaq ?
8
8
9
9
``` js
10
10
let name = " Ilya" ;
11
11
12
- alert ( ` hello ${ 1 } ` ); // ?
12
+ alert ( ` salam ${ 1 } ` ); // ?
13
13
14
- alert ( ` hello ${ " name " } ` ); // ?
14
+ alert ( ` salam ${ " ad " } ` ); // ?
15
15
16
- alert ( ` hello ${ name} ` ); // ?
16
+ alert ( ` salam ${ name} ` ); // ?
17
17
```
You can’t perform that action at this time.
0 commit comments