5.6k views
3 votes
Jenn wants to assign a value to the favorite car variable: favoriteCar = Toyota but gets an error message. What does she need to fix for the code to work?

a
Add a space between the words in the variable name.

b
Create a shorter variable name.

c
Remove the equal sign.

d
Put quotation marks around the string.

User Tas Morf
by
7.3k points

1 Answer

2 votes

Answer:

The correct answer is: Option d: Put Quotation marks around the string.

Step-by-step explanation:

The names of things or places or cars are usually in the form of words or sentences. The words or sentences are stored in string datatype.

Quotation marks are used to deal with strings in programming languages.

Hence,

The correct answer is: Option d: Put Quotation marks around the string.

User Pablo Abdelhay
by
6.3k points