Skip to content

Commit 572277c

Browse files
authored
Merge pull request #11 from SibianDG/types
Data types
2 parents 951bfaf + 2e6c78b commit 572277c

File tree

3 files changed

+138
-143
lines changed

3 files changed

+138
-143
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
2-
Backticks embed the expression inside `${...}` into the string.
1+
Backticks verankeren de uitdrukking in `${...}` in de string.
32

43
```js run
5-
let name = "Ilya";
4+
let naam = "Ilya";
65

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
98

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
1211

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
1514
```
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
importance: 5
2-
3-
---
4-
51
# String quotes
62

7-
What is the output of the script?
3+
Wat is de output van het script?
84

95
```js
10-
let name = "Ilya";
6+
let naam = "Ilya";
117

128
alert( `hello ${1}` ); // ?
139

1410
alert( `hello ${"name"}` ); // ?
1511

16-
alert( `hello ${name}` ); // ?
12+
alert( `hello ${naam}` ); // ?
1713
```

0 commit comments

Comments
 (0)