javascript-primitive-strings Flashcards
1
Q
What is a string?
A
a letter, word, number, etc. with quotes around it
2
Q
What is the string concatenation operator?
A
+
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
4
Q
How do you escape quotation characters?
A
\
5
Q
What is type coercion?
A
JavaScript can convert data types behind the scenes to complete an operation.