Which line will add the value stored in the variable pizza to the food() array?
```
var food = new Array("burger", "chips", "subs", "lasagna");
var pizza = "pepperoni pizza";
```
a. food[0] = pizza;
b. pizza.push(food);
c. food.push(pizza);
d. This cannot be done.
c. food.push(pizza);
You might also like to view...
An HTML ____________________ is a collection of HTML elements used to gather data that a user enters online.
Fill in the blank(s) with the appropriate word(s).
Which of the following is NOT an alignment option in the Control Alignment group?
A) Right B) To Grid C) Left D) To Margin
A document that can be read by Adobe Acrobat instead of Word is a(n) ________
Fill in the blank(s) with correct word
Case-Based Critical Thinking Questions ? Case 9-2 Robin maintains a web page for updating the metro timings in the city.He would like the website to display the present day's schedule. To do this, Robin writes a code that includes an object to retrieve the day of the week and then loads the appropriate data into the page. ? ?Robin includes an expression to the code, var thisDay = new Date("May 23, 2018 14:35:05"); ? He also includes the methodthisDay.getDay()in the code. What is the result for the given method?
A. ?1 B. ?3 C. ?4 D. ?5