4. String Output Flashcards

1
Q

Wie benutze ich template literals?

A

Im JavaScript Backticks also `` (oder mit einer variable zb const content = content)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Wie greife ich auf Properties und Variablen in template literals zu?

A

Indem ich ${Name} eingebe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Wie greife ich in js auf variablen zu und gebe sie im html per string aus?

A

Mit zb “<div>” + variable + “</div>”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Was ist string concatanation?

A

In js string + variable, es versucht strings mit variablen zu vermischen, es nimmt keine Leerzeichen mit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly