JavaScript - Strings Flashcards
What are the three ways to represent strings in JavaScript?
- Double quotation marks
- Single quotation marks
- Backticks
Fill in the blank: To represent a string in JavaScript using double quotation marks, you would write: _______.
“Some text here.”
Fill in the blank: To represent a string in JavaScript using single quotation marks, you would write: _______.
‘Some text here.’
Fill in the blank: To represent a string in JavaScript using backticks, you would write: _______.
Some text here.
What is the first method to represent strings in JavaScript?
Surrounding text with double quotation marks
What is the second method to represent strings in JavaScript?
Surrounding text with single quotation marks
What is the third method to represent strings in JavaScript?
Surrounding text with backticks
True or False: In JavaScript, strings can only be represented using double quotation marks.
False