File tree Expand file tree Collapse file tree 3 files changed +109
-109
lines changed
1-js/02-first-steps/05-types Expand file tree Collapse file tree 3 files changed +109
-109
lines changed Original file line number Diff line number Diff line change 1
1
2
- Backticks embed the expression inside ` ${...} ` into the string .
2
+ Backticks indlejrer udtryk skrevet i ` ${...} ` ind i selve tekststrengen .
3
3
4
4
``` js run
5
5
let name = " Ilya" ;
6
6
7
- // the expression is a number 1
7
+ // udtrykket er et tal
8
8
alert ( ` hello ${ 1 } ` ); // hello 1
9
9
10
- // the expression is a string "name"
10
+ // udtrykket er selve teksten "name"
11
11
alert ( ` hello ${ " name" } ` ); // hello name
12
12
13
- // the expression is a variable, embed it
13
+ // udtrykket er indholdet af variablen name
14
14
alert ( ` hello ${ name} ` ); // hello Ilya
15
15
```
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ importance: 5
2
2
3
3
---
4
4
5
- # String quotes
5
+ # Tesktstrenge og citationstegn
6
6
7
- What is the output of the script?
7
+ Hvad skriver følgende kommandoerWhat is the output of the script?
8
8
9
9
``` js
10
10
let name = " Ilya" ;
You can’t perform that action at this time.
0 commit comments