ligabe16p97x3m ligabe16p97x3m
  • 24-05-2018
  • Computers and Technology
contestada

What does the following code alert?

var person = {
name: "Mike",
age: 25,
favoriteFood: "pizza"
};

Respuesta :

brookie2bows01
brookie2bows01 brookie2bows01
  • 25-05-2018
 My best friend's name isMike,he's 25 years old and his favorite food is pizza
Answer Link
IsrarAwan
IsrarAwan IsrarAwan
  • 09-11-2018

It is just a declaration of an object variable, person, in JavaScript. Within a person object, there are key:value pairs. The code that you  shared has the following keys: name, age, and favouriteFood, whereas the values of those keys are: Mike, 25, and pizza.


There is no alert statement in this code snippet; therefore, it will not alert anything. This code contains only a variable called person, and that's it!

Answer Link

Otras preguntas

What is 1.75rounded to the nearest cent mathematics
Mike, who has 6 video games, has half as many games as Paul.
is 45/75 equivalent to 3/5 Please helpppppp
Determine a submarines acceleration if it's initial velocity is 9.0 m/s and it travels 1.54 km in 2 min
Gavin had $5460.40 that he divided into tow bank accounts. he deposited 3/8 into a savings account. he deposited the rest into his checking account. How much mo
Which of the following is the correct formula for potassium bromide? A. K2Br B. Kbr2 C. Kbr3 D. Kbr
You throw a ball downward from a window at a speed of 2.0m/s. How far has it fallen in 3 seconds?
ann has the 5 newest music CD's which is 3 less than twice the amount that Bob has.
1/3(16a-8) simplify this expression and please explain
I can somebody help me with this problem and explained with steps 17=12(x+2)+2x