javascript-primitive-strings Flashcards

1
Q

What is a string?

A

stores a series of characters like “John Doe”

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

What is the string concatenation operator?

A

Joining multiple strings together

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

there is no difference between using double or single quotes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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

What is type coercion?

A

implicit conversion of values from one data type to another (such as strings to numbers)

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