Jon wants to assign a value to the favorite food variable: favoriteFood! = "Pizza" but gets an error message. What does he need to fix for the
code to work?
O Delete the symbol in the string.
O Put quotations around the string.
O Remove the exclamation mark from the variable name.
O Add a space between the words in the variable name.

Respuesta :

Answer:

The answer is C.

Explanation:

There cannot be any type of punctuation in the variable.

Jon wants to assign a value to the favorite food variable: favorite food! = "Pizza" but gets an error message by Removing the exclamation mark from the variable name it will fix for the code to work.

What is code?

In laptop programming, code refers back to the set of instructions, or a machine of rules, written in a selected programming language (i.e., the supply code).

If you've got ever observed an exclamation mark (!) earlier than the variable in a person's JavaScript code the negation operator (!) definitely simply reverses the means of its operand. ! is the logical now no longer operator in javascript.

Read more about the javascript:

https://brainly.com/question/27683041

#SPJ2