JavaScript - Strings Flashcards

1
Q

What are the three ways to represent strings in JavaScript?

A
  1. Double quotation marks
  2. Single quotation marks
  3. Backticks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Fill in the blank: To represent a string in JavaScript using double quotation marks, you would write: _______.

A

“Some text here.”

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

Fill in the blank: To represent a string in JavaScript using single quotation marks, you would write: _______.

A

‘Some text here.’

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

Fill in the blank: To represent a string in JavaScript using backticks, you would write: _______.

A

Some text here.

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

What is the first method to represent strings in JavaScript?

A

Surrounding text with double quotation marks

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

What is the second method to represent strings in JavaScript?

A

Surrounding text with single quotation marks

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

What is the third method to represent strings in JavaScript?

A

Surrounding text with backticks

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

True or False: In JavaScript, strings can only be represented using double quotation marks.

A

False

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