179k views
3 votes
Jenn wants to assign a value to the favorite sport variable: 4favoriteSport = "soccer" but gets an error message. What does she need to fix for the code to work?

a Create a shorter variable name.

b Remove the equal sign.

c Remove the quotation marks around the string.

d Remove the number from the variable name.

User Waris
by
5.2k points

2 Answers

2 votes

Answer: it would be to move the number from the variable name

Step-by-step explanation:

Because the code dose not understand that you need to say that your favored sport is soccer

User Nitesh Khosla
by
6.0k points
5 votes

Answer:

D. Remove the number from the variable

Step-by-step explanation:

Because in normal coding it would only be favoriteSport = "soccer" not with a 4

User Henry Heath
by
5.7k points