javascript-primitive-strings Flashcards

1
Q

What is a string?

A

a letter, word, number, etc. with quotes around it

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

What is the string concatenation operator?

A

+

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

What is the difference when it comes to using single quotes or double quotes ( ‘ ‘ or “ “ )?

A

nothing, yet you need to use the same type on both ends and if you have quotes in the string you need to use the opposite type for surrounding it

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

How do you escape quotation characters?

A

\

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

What is type coercion?

A

JavaScript can convert data types behind the scenes to complete an operation.

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