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

nêu cơ sở pháp lí quy định về hệ thống văn bản quản lý nhà nước
10 extra points to answer quick​
solve the inequality.. help me out asap plss ​
Talerie has a bathtub that she needs to fill with wa- ter to fill the tub, she first needs to fill a bucket with water and then dump this into the bathtub. If t
Write TWO paragraphs (at least 100 words) to support the idea that leisure time is important. Below are some suggested topic sentences: 1. Leisure time can impr
outline the various challenges that you are likely to face during the implementation of a dam. ​
factorise m^2 - 12 m + 24
Find the shaded area
Please help below with prob Stats
Management of software development consist of? Chọn một: a. Process b. People c. Project d. All of the above