Ask Question

What does the following code alert? var person = { name: "Mike", age: 25, favoriteFood: "pizza" }; alert ("My best friend's name is" + person. name + ", he's " + person. age + " years old and his favorite food is " + person. favoriteFood);

· My best friend's name isMike, he's 25 years old and his favorite food is pizza

· My best friend's name is Mike, he's 25 years old and his favorite food is pizza.

· My best friend's name isMike, he's 25 years old and his favorite food is pizza.

· My friend's best name isMike, he's 25 years old and his favorite food is pizza.

+3
Answers (1)
  1. 9 September, 13:03
    0
    My best friend's name isMike, he's 25 years old and his favorite food is pizza
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What does the following code alert? var person = { name: "Mike", age: 25, favoriteFood: "pizza" }; alert ("My best friend's name is" + ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers