javascript-primitive-strings Flashcards
1
Q
What is a string?
A
stores a series of characters like “John Doe”
2
Q
What is the string concatenation operator?
A
Joining multiple strings together
3
Q
What is the difference when it comes to using single quotes or double quotes ( ‘ ‘ or “ “ )?
A
there is no difference between using double or single quotes
4
Q
How do you escape quotation characters? js
A
escape character to prevent JavaScript from interpreting a quote as the end of the string
5
Q
What is type coercion?
A
implicit conversion of values from one data type to another (such as strings to numbers)