Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 pizza

Explanation / 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.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote