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.

Respuesta :

Answer:

The correct answer is:

Option D: Put Quotation marks around the string

Explanation:

There are various data types that are used to store data in programming i.e. numeric, alphabetic, alphanumeric etc.

Given that Jenn wants to store the value in variable. The names of cars are usually rods and the data type for them is string.

Whenever a string is used, quotation marks are used around it. The quotation marks make it easier for the compilers and interpreters to identify string.

Hence,

The correct answer is:

Option D: Put Quotation marks around the string