File tree 3 files changed +138
-143
lines changed
1-js/02-first-steps/05-types
3 files changed +138
-143
lines changed Original file line number Diff line number Diff line change 1
-
2
- Backticks embed the expression inside ` ${...} ` into the string.
1
+ Backticks verankeren de uitdrukking in ` ${...} ` in de string.
3
2
4
3
``` js run
5
- let name = " Ilya" ;
4
+ let naam = " Ilya" ;
6
5
7
- // the expression is a number 1
8
- alert ( ` hello ${ 1 } ` ); // hello 1
6
+ // de uitdrukking is een nummer 1
7
+ alert ( ` hallo ${ 1 } ` ); // hallo 1
9
8
10
- // the expression is a string "name"
11
- alert ( ` hello ${ " name " } ` ); // hello name
9
+ // de uitdrukking is een tekenreeks "naam".
10
+ alert ( ` hallo ${ " naam " } ` ); // hallo naam
12
11
13
- // the expression is a variable, embed it
14
- alert ( ` hello ${ name } ` ); // hello Ilya
12
+ // de uitdrukking is een ingevulde variabele
13
+ alert ( ` hallo ${ naam } ` ); // hallo Ilya
15
14
```
Original file line number Diff line number Diff line change 1
- importance: 5
2
-
3
- ---
4
-
5
1
# String quotes
6
2
7
- What is the output of the script?
3
+ Wat is de output van het script?
8
4
9
5
``` js
10
- let name = " Ilya" ;
6
+ let naam = " Ilya" ;
11
7
12
8
alert ( ` hello ${ 1 } ` ); // ?
13
9
14
10
alert ( ` hello ${ " name" } ` ); // ?
15
11
16
- alert ( ` hello ${ name } ` ); // ?
12
+ alert ( ` hello ${ naam } ` ); // ?
17
13
```
You can’t perform that action at this time.
0 commit comments