A

Admin • 828.03K Points
Coach

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

Code:
var arr=[1, 3, 5, 8 ,11];
var value =Math.max.apply(null,arr);
document.writeln(value);
  • (A) 7
  • (B) 11
  • (C) 3
  • (D) 9
  • Correct Answer - Option(B)
  • Views: 7
  • 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.