A

Admin • 833K Points
Coach

Q. Which one of the following is correct output for the following given JavaScript code

Code:
functionoutputfun(object)
{
var place=object ?object.place: "Italy";
return "clean:"+ place;
}
console.log(outputfun({place:India}));
  • (A) Error
  • (B) clean:Italy
  • (C) clean:India
  • (D) undefined
  • Correct Answer - Option(C)
  • Views: 28
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.