What does the following code alert? var person-t name: \"Mike\" age: 25 favorite
ID: 3907586 • Letter: W
Question
What does the following code alert? var person-t 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), O My best friend's name isMike he's 25 years old and his favorite food is pizza O My best friend's name is Mike, he's 25 years old and his favorite food is pizza O My best friend's name isMike he's 25 years old and his favorite food is pizza O My friend's best name isMike,he's 25 years old and his favorite food is pizzaExplanation / Answer
The following code will alert:
My best friend's name isMike,he's 25 years old and his favorite food is pizza
option 1st works fine other have some or the other spacing problems.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.